[-] FO : Undefined free_shipping in POC when updateQty

This commit is contained in:
gRoussac committed 2013-04-16 11:28:22 +02:00
1 parent b2f5ed838d
commit f2bdb73d39
3 files changed
+12 -3

No files matched your search

-1
View File
@@ -347,7 +347,6 @@ class OrderControllerCore extends ParentOrderController
$this->context->smarty->assign( $this->context->smarty->assign(
array( array(
// 'free_shipping' => false, // Deprecated since a cart rule can be applied the specific carriers only
'is_guest' => (isset($this->context->customer->is_guest) ? $this->context->customer->is_guest : 0) 'is_guest' => (isset($this->context->customer->is_guest) ? $this->context->customer->is_guest : 0)
)); ));
} }
+11 -1
View File
@@ -498,9 +498,19 @@ class OrderOpcControllerCore extends ParentOrderController
$wrapping_fees = $this->context->cart->getGiftWrappingPrice(false); $wrapping_fees = $this->context->cart->getGiftWrappingPrice(false);
$wrapping_fees_tax_inc = $wrapping_fees = $this->context->cart->getGiftWrappingPrice(); $wrapping_fees_tax_inc = $wrapping_fees = $this->context->cart->getGiftWrappingPrice();
$oldMessage = Message::getMessageByCartId((int)($this->context->cart->id)); $oldMessage = Message::getMessageByCartId((int)($this->context->cart->id));
$free_shipping = false;
foreach ($this->context->cart->getCartRules() as $rule)
{
if ($rule['free_shipping'] && !$rule['carrier_restriction'])
{
$free_shipping = true;
break;
}
}
$vars = array( $vars = array(
// 'free_shipping' => false, // Deprecated since a cart rule can be applied the specific carriers only 'free_shipping' => $free_shipping,
'checkedTOS' => (int)($this->context->cookie->checkedTOS), 'checkedTOS' => (int)($this->context->cookie->checkedTOS),
'recyclablePackAllowed' => (int)(Configuration::get('PS_RECYCLABLE_PACK')), 'recyclablePackAllowed' => (int)(Configuration::get('PS_RECYCLABLE_PACK')),
'giftAllowed' => (int)(Configuration::get('PS_GIFT_WRAPPING')), 'giftAllowed' => (int)(Configuration::get('PS_GIFT_WRAPPING')),
+1 -1
View File
@@ -170,7 +170,7 @@
</td> </td>
<td> <td>
<div class="delivery_option_price"> <div class="delivery_option_price">
{if $option.total_price_with_tax && !$free_shipping} {if $option.total_price_with_tax && (!isset($free_shipping) || (isset($free_shipping) && !$free_shipping))}
{if $use_taxes == 1} {if $use_taxes == 1}
{convertPrice price=$option.total_price_with_tax} {l s='(tax incl.)'} {convertPrice price=$option.total_price_with_tax} {l s='(tax incl.)'}
{else} {else}