From 62d6067c1a6171aaf048bbcbf2a1411532f6d5b2 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 21 Sep 2012 12:44:38 +1000 Subject: [PATCH] Do not truncate cents for product price update on add to cart JS --- app/assets/javascripts/store/products.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/store/products.js b/app/assets/javascripts/store/products.js index bd5aa329be..3e972161a6 100644 --- a/app/assets/javascripts/store/products.js +++ b/app/assets/javascripts/store/products.js @@ -28,7 +28,7 @@ function products_update_price_without_variant() { if(master_price == null) { // Store off the master price master_price = $("#product-price span.price").html(); - master_price = master_price.substr(1, master_price.length-2); + master_price = master_price.substring(1); $("#product-price span.price").data('master-price', master_price); }