From 2e860d6750028c2ac027af58b960ccaa36cdd4eb Mon Sep 17 00:00:00 2001 From: Captain FLAM Date: Mon, 22 Jul 2013 18:58:59 +0100 Subject: [PATCH] Update product.js if product with declinaison without reduction : reduction price is showed !! because of this comparison after (line ~400): if (productPriceWithoutReductionDisplay > productPriceDisplay) and : var tmp = productPriceDisplay * group_reduction; is unused --- themes/default/js/product.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 5a4b4e8c8..7f3959df2 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -312,7 +312,7 @@ function updateDisplay() var taxExclPrice = (specific_currency ? product_specific_price.price : product_specific_price.price * currencyRate) + (selectedCombination['price'] * currencyRate); if (!displayPrice && !noTaxForThisProduct) - productPriceDisplay = taxExclPrice * tax; // Need to be global => no var + productPriceDisplay = ps_round(taxExclPrice * tax, 2); // Need to be global => no var else productPriceDisplay = ps_round(taxExclPrice, 2); // Need to be global => no var @@ -372,7 +372,6 @@ function updateDisplay() $('#not_impacted_by_discount').hide(); productPriceDisplay -= reduction; - var tmp = productPriceDisplay * group_reduction; productPriceDisplay = ps_round(productPriceDisplay * group_reduction, 2); var ecotaxAmount = !displayPrice ? ps_round(selectedCombination['ecotax'] * (1 + ecotaxTax_rate / 100), 2) : selectedCombination['ecotax'];