// Cart display improved with free shipping
This commit is contained in:
@@ -2664,6 +2664,12 @@ class CartCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
$cart_rule['value_real'] -= $total_shipping;
|
$cart_rule['value_real'] -= $total_shipping;
|
||||||
$cart_rule['value_tax_exc'] = $total_shipping_tax_exc;
|
$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 = 0;
|
||||||
$total_shipping_tax_exc = 0;
|
$total_shipping_tax_exc = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user