From 429069e0cf1d48c9976a53b02c9ad9d5f38d39a0 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Wed, 21 Jun 2023 15:56:58 +0200 Subject: [PATCH] fix wrong var usage --- Application/views/blocks/view_cart.tpl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Application/views/blocks/view_cart.tpl b/Application/views/blocks/view_cart.tpl index e879e19..5672c28 100644 --- a/Application/views/blocks/view_cart.tpl +++ b/Application/views/blocks/view_cart.tpl @@ -20,17 +20,17 @@ [{assign var="gtmBasketItem" value=$basketitem->getArticle()}] [{assign var="gtmBasketItemCategory" value=$gtmBasketItem->getCategory()}] { - 'item_id': '[{$gtmCartArticles[$basketindex]->getFieldData('oxartnum')}]', - 'item_name': '[{$gtmCartArticles[$basketindex]->getFieldData('oxtitle')}]', - 'item_variant': '[{$gtmCartArticles[$basketindex]->getFieldData('oxvarselect')}]', - 'item_category':'[{$gtmBasketItemCategory->getSplitCategoryArray(0)}]', - 'item_category_2':'[{$gtmBasketItemCategory->getSplitCategoryArray(1)}]', - 'item_category_3':'[{$gtmBasketItemCategory->getSplitCategoryArray(2)}]', - 'item_category_4':'[{$gtmBasketItemCategory->getSplitCategoryArray(3)}]', - 'item_list_name':'[{$gtmCategory->getSplitCategoryArray()}]', - 'price': [{$d3oItemPrice->getPrice()}], - 'quantity':[{$basketitem->getAmount()}], - 'position':[{$smarty.foreach.gtmCartContents.index}] + 'item_id': '[{$gtmCartArticles[$basketindex]->getFieldData('oxartnum')}]', + 'item_name': '[{$gtmCartArticles[$basketindex]->getFieldData('oxtitle')}]', + 'item_variant': '[{$gtmCartArticles[$basketindex]->getFieldData('oxvarselect')}]', + 'item_category': '[{$gtmBasketItemCategory->getSplitCategoryArray(0)}]', + 'item_category_2': '[{$gtmBasketItemCategory->getSplitCategoryArray(1)}]', + 'item_category_3': '[{$gtmBasketItemCategory->getSplitCategoryArray(2)}]', + 'item_category_4': '[{$gtmBasketItemCategory->getSplitCategoryArray(3)}]', + 'item_list_name': '[{$gtmBasketItemCategory->getSplitCategoryArray()}]', + 'price': [{$d3oItemPrice->getPrice()}], + 'quantity': [{$basketitem->getAmount()}], + 'position': [{$smarty.foreach.gtmCartContents.index}] }[{if !$smarty.foreach.gtmCartContents.last}],[{/if}] [{/foreach}] ]