[-] FO : First part of fix #PSCFV-8636, cart rule on specifice carrier / all carriers

This commit is contained in:
gRoussac
2013-04-15 18:30:41 +02:00
parent 5989481859
commit eca4a87082
3 changed files with 17 additions and 7 deletions
+2 -2
View File
@@ -316,7 +316,7 @@ class OrderOpcControllerCore extends ParentOrderController
// If a rule offer free-shipping, force hidding shipping prices
$free_shipping = false;
foreach ($this->context->cart->getCartRules() as $rule)
if ($rule['free_shipping'])
if ($rule['free_shipping'] && !$rule['carrier_restriction'])
{
$free_shipping = true;
break;
@@ -500,7 +500,7 @@ class OrderOpcControllerCore extends ParentOrderController
$oldMessage = Message::getMessageByCartId((int)($this->context->cart->id));
$vars = array(
'free_shipping' => false, // Deprecated since a cart rule can be applied the specific carriers only
// 'free_shipping' => false, // Deprecated since a cart rule can be applied the specific carriers only
'checkedTOS' => (int)($this->context->cookie->checkedTOS),
'recyclablePackAllowed' => (int)(Configuration::get('PS_RECYCLABLE_PACK')),
'giftAllowed' => (int)(Configuration::get('PS_GIFT_WRAPPING')),