From 583164efb54bebd3cc43cd6a67f66bb8723d8206 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 10 Sep 2013 11:52:13 +1000 Subject: [PATCH] Fix variant price calculation --- 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 0dabff5f4d..127e8ce28f 100644 --- a/app/assets/javascripts/store/products.js +++ b/app/assets/javascripts/store/products.js @@ -23,7 +23,7 @@ $(document).ready(function() { function products_update_price_with_variant() { - var variant_price = $("#product-variants input[type='radio']:checked").parent().find("span.price").html(); + var variant_price = $("#product-variants input[type='radio']:checked").parent().find("span.price").html().trim(); variant_price = variant_price.substr(2, variant_price.length-3); var quantity = $("#quantity").val();