// Cart display improved with free shipping

This commit is contained in:
dMetzger
2012-05-21 17:33:51 +00:00
parent 94e35ac483
commit 273218e53f
+6
View File
@@ -2664,6 +2664,12 @@ class CartCore extends ObjectModel
{
$cart_rule['value_real'] -= $total_shipping;
$cart_rule['value_tax_exc'] = $total_shipping_tax_exc;
// Update total discounts
$total_discounts = Tools::ps_round($total_discounts - $total_shipping, (int)$context->currency->decimals * _PS_PRICE_DISPLAY_PRECISION_);
$total_discounts_tax_exc = Tools::ps_round($total_discounts_tax_exc - $total_shipping_tax_exc, (int)$context->currency->decimals * _PS_PRICE_DISPLAY_PRECISION_);
// Update total shipping
$total_shipping = 0;
$total_shipping_tax_exc = 0;
}