diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-05-06 15:22:04 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-05-06 15:22:04 +0200 |
| commit | a0a1eb402d84be81000ed608d3da40a495cc6d34 (patch) | |
| tree | eddd5d6c13005cd9ab6b2c8354573fa617e6de14 /StoneIsland/www/js/lib/cart/CartConfirm.js | |
| parent | 9c18073017b5cc2334bf1867c004bfc74ba5a92a (diff) | |
cart accessibility
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartConfirm.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/cart/CartConfirm.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartConfirm.js b/StoneIsland/www/js/lib/cart/CartConfirm.js index 6909dcc3..11d529ff 100755 --- a/StoneIsland/www/js/lib/cart/CartConfirm.js +++ b/StoneIsland/www/js/lib/cart/CartConfirm.js @@ -90,9 +90,9 @@ var CartConfirm = FormView.extend({ .replace(/{{sku}}/, num) .replace(/{{title}}/, title) .replace(/{{type}}/, type) - .replace(/{{size}}/, size_name || "DEFAULT") - .replace(/{{color}}/, color_name || "DEFAULT") - .replace(/{{quantity}}/, 1) + .replace(/{{size}}/g, size_name || "DEFAULT") + .replace(/{{color}}/g, color_name || "DEFAULT") + .replace(/{{quantity}}/g, 1) .replace(/{{price}}/, as_cash(details.Item.Price.DiscountedPrice)) $el.data("price", details.Item.Price.DiscountedPrice) $el.html(t) @@ -109,6 +109,8 @@ var CartConfirm = FormView.extend({ this.$shipping.html( as_cash(shipping_cost) ) this.$tax.html( as_cash(tax) ) this.$total.html( as_cash(total) ) + this.$(".subtotal_row").attr('aria-label', "Subtotal " + as_cash(subtotal)) + this.$(".total_row").attr('aria-label', "Total " + as_cash(total)) if (data.Receiver) { var street = data.Receiver.StreetWithNumber.replace(/\n$/,"").replace("\n", ", ") |
