diff --git a/classes/Cart.php b/classes/Cart.php index 316f2508c..68f18d49d 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -2665,7 +2665,8 @@ class CartCore extends ObjectModel // The cart content is altered for display foreach ($cart_rules as &$cart_rule) { - if ($cart_rule['free_shipping']) + // 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'])) { $cart_rule['value_real'] -= $total_shipping; $cart_rule['value_tax_exc'] = $total_shipping_tax_exc; diff --git a/controllers/admin/AdminCartRulesController.php b/controllers/admin/AdminCartRulesController.php index cec13a5f0..b0a21115b 100644 --- a/controllers/admin/AdminCartRulesController.php +++ b/controllers/admin/AdminCartRulesController.php @@ -226,7 +226,7 @@ class AdminCartRulesControllerCore extends AdminController } /* Retrieve the cart rule product rule groups in the POST data if available, and in the database if there is none */ - public function getProductRuleGroupsDisplay($cartRule) + public function getProductRuleGroupsDisplay($cart_rule) { $productRuleGroupsArray = array(); if (Tools::getValue('product_restriction') && is_array($array = Tools::getValue('product_rule_group')) && count($array)) @@ -258,7 +258,7 @@ class AdminCartRulesControllerCore extends AdminController else { $i = 1; - foreach ($cartRule->getProductRuleGroups() as $productRuleGroup) + foreach ($cart_rule->getProductRuleGroups() as $productRuleGroup) { $j = 1; $productRulesDisplay = array(); diff --git a/themes/default/css/global.css b/themes/default/css/global.css index 30c55c3e8..51883234d 100644 --- a/themes/default/css/global.css +++ b/themes/default/css/global.css @@ -672,7 +672,6 @@ table#cart_summary td { vertical-align:top } table#cart_summary td.cart_delete, -table#cart_summary td.cart_discount_price, table#cart_summary td.price_discount_del {border-right:none} table#cart_summary .last_item td {border-bottom:1px solid #999} diff --git a/themes/default/shopping-cart.tpl b/themes/default/shopping-cart.tpl index e7ae8e16f..bcee60409 100644 --- a/themes/default/shopping-cart.tpl +++ b/themes/default/shopping-cart.tpl @@ -100,38 +100,27 @@