From fd79710158dca4b417d6141ca50c45d557274641 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Thu, 22 Jun 2023 10:43:50 +0200 Subject: [PATCH] add coupon to view_cart --- Application/views/blocks/view_cart.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Application/views/blocks/view_cart.tpl b/Application/views/blocks/view_cart.tpl index 5672c28..79279c0 100644 --- a/Application/views/blocks/view_cart.tpl +++ b/Application/views/blocks/view_cart.tpl @@ -14,6 +14,7 @@ 'actionField': "step: 1", 'currency': "[{$currency->name}]", 'value': [{$d3BasketPrice->getPrice()}], + 'coupon': '[{foreach from=$oxcmp_basket->getVouchers() item=sVoucher key=key name=Voucher}][{$sVoucher->sVoucherNr}][{if !$smarty.foreach.Voucher.last}], [{/if}][{/foreach}]', 'items': [ [{foreach from=$oxcmp_basket->getContents() item=basketitem name=gtmCartContents key=basketindex}] [{assign var="d3oItemPrice" value=$basketitem->getPrice()}] @@ -29,6 +30,7 @@ 'item_category_4': '[{$gtmBasketItemCategory->getSplitCategoryArray(3)}]', 'item_list_name': '[{$gtmBasketItemCategory->getSplitCategoryArray()}]', 'price': [{$d3oItemPrice->getPrice()}], + 'coupon': '[{foreach from=$oxcmp_basket->getVouchers() item=sVoucher key=key name=Voucher}][{$sVoucher->sVoucherNr}][{if !$smarty.foreach.Voucher.last}], [{/if}][{/foreach}]', 'quantity': [{$basketitem->getAmount()}], 'position': [{$smarty.foreach.gtmCartContents.index}] }[{if !$smarty.foreach.gtmCartContents.last}],[{/if}]