[-] FO : restored the display of available cart rules in the cart #PSCFV-5473 (clean)
This commit is contained in:
@@ -335,7 +335,7 @@ class ParentOrderControllerCore extends FrontController
|
||||
'CUSTOMIZE_FILE' => Product::CUSTOMIZE_FILE,
|
||||
'CUSTOMIZE_TEXTFIELD' => Product::CUSTOMIZE_TEXTFIELD,
|
||||
'lastProductAdded' => $this->context->cart->getLastProduct(),
|
||||
'displayVouchers' => CartRule::getCustomerCartRules($this->context->language->id, (isset($this->context->customer->id) ? $this->context->customer->id : 0)),
|
||||
'displayVouchers' => CartRule::getCustomerCartRules($this->context->language->id, (isset($this->context->customer->id) ? $this->context->customer->id : 0), true, true, true, $this->context->cart),
|
||||
'currencySign' => $this->context->currency->sign,
|
||||
'currencyRate' => $this->context->currency->conversion_rate,
|
||||
'currencyFormat' => $this->context->currency->format,
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
<h4 class="title_offers">{l s='Take advantage of our offers:'}</h4>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach $displayVouchers as $voucher}
|
||||
<span onclick="$('#discount_name').val('{$voucher.code}');return false;" class="voucher_name">{$voucher.code}</span> - {$voucher.name} <br />
|
||||
{if $voucher.code != ''}<span onclick="$('#discount_name').val('{$voucher.code}');return false;" class="voucher_name">{$voucher.code}</span> - {/if}{$voucher.name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user