Fix variant price calculation

This commit is contained in:
Rohan Mitchell
2013-09-10 11:52:13 +10:00
parent 315876ca9d
commit 583164efb5

View File

@@ -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();