Commit a9ad60b143c19066953ef2ce9487c647bb6dd162
1 parent
1aeb0d56
Exists in
staging
and in
42 other branches
Fixing Microdata variable name class on shopping cart
(ActionItem2591)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/shopping_cart/public/cart.js
@@ -65,7 +65,7 @@ function Cart(config) { | @@ -65,7 +65,7 @@ function Cart(config) { | ||
65 | ).appendTo(li); | 65 | ).appendTo(li); |
66 | var input = $("input", li)[0]; | 66 | var input = $("input", li)[0]; |
67 | input.lastValue = input.value; | 67 | input.lastValue = input.value; |
68 | - input.itemId = item.id; | 68 | + input.productId = item.id; |
69 | input.ajustSize = function() { | 69 | input.ajustSize = function() { |
70 | var len = this.value.toString().length; | 70 | var len = this.value.toString().length; |
71 | if(len > 2) len--; | 71 | if(len > 2) len--; |
@@ -73,7 +73,7 @@ function Cart(config) { | @@ -73,7 +73,7 @@ function Cart(config) { | ||
73 | }; | 73 | }; |
74 | input.ajustSize(); | 74 | input.ajustSize(); |
75 | input.onchange = function() { | 75 | input.onchange = function() { |
76 | - me.updateQuantity(this, this.itemId, this.value); | 76 | + me.updateQuantity(this, this.productId, this.value); |
77 | }; | 77 | }; |
78 | // document.location.href = "#"+liId; | 78 | // document.location.href = "#"+liId; |
79 | // document.location.href = "#"+this.cartElem.id; | 79 | // document.location.href = "#"+this.cartElem.id; |