[-] FO : First part of fix #PSCFV-8636, cart rule on specifice carrier / all carriers
This commit is contained in:
@@ -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')),
|
||||
|
||||
Reference in New Issue
Block a user