[-] BO: Fix #PSCFV-6120 display of shipping price on BO order summary detail with freeshipping

This commit is contained in:
Rémi Gaillard
2013-01-04 14:51:01 +01:00
parent 20fa64b05b
commit 3fbd7dc55c
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -2850,7 +2850,7 @@ class CartCore extends ObjectModel
foreach ($cart_rules as &$cart_rule)
{
// If the cart rule is automatic (wihtout any code) and include free shipping, it should not be displayed as a cart rule but only set the shipping cost to 0
if ($cart_rule['free_shipping'] && empty($cart_rule['code']))
if ($cart_rule['free_shipping'] && (empty($cart_rule['code']) || preg_match('/^'.CartRule::BO_ORDER_CODE_PREFIX.'[0-9]+/', $cart_rule['code'])))
{
$cart_rule['value_real'] -= $total_shipping;
$cart_rule['value_tax_exc'] = $total_shipping_tax_exc;