[-] FO : FixBug #PSCFV-9291 - Ecotax increment display price in product combination

This commit is contained in:
Jerome Nadaud
2013-11-13 11:04:13 +01:00
parent 9f10a851e5
commit 2117c89352

View File

@@ -375,8 +375,16 @@ function updateDisplay()
productPriceDisplay = ps_round(productPriceDisplay * group_reduction, 2); productPriceDisplay = ps_round(productPriceDisplay * group_reduction, 2);
var ecotaxAmount = !displayPrice ? ps_round(selectedCombination['ecotax'] * (1 + ecotaxTax_rate / 100), 2) : selectedCombination['ecotax']; var ecotaxAmount = !displayPrice ? ps_round(selectedCombination['ecotax'] * (1 + ecotaxTax_rate / 100), 2) : selectedCombination['ecotax'];
productPriceDisplay += ecotaxAmount;
productPriceWithoutReductionDisplay += ecotaxAmount; if (ecotaxAmount != default_eco_tax)
productPriceDisplay += ecotaxAmount - default_eco_tax;
else
productPriceDisplay += ecotaxAmount;
if (ecotaxAmount != default_eco_tax)
productPriceWithoutReductionDisplay += ecotaxAmount - default_eco_tax;
else
productPriceWithoutReductionDisplay += ecotaxAmount;
var our_price = ''; var our_price = '';
if (productPriceDisplay > 0) { if (productPriceDisplay > 0) {