diff --git a/Application/views/blocks/checkout_s5.tpl b/Application/views/blocks/checkout_s5.tpl index bb66462..96cc2d3 100644 --- a/Application/views/blocks/checkout_s5.tpl +++ b/Application/views/blocks/checkout_s5.tpl @@ -8,30 +8,28 @@ 'event': 'purchase', 'eventLabel':'Checkout Step 5', 'ecommerce': { - 'purchase': { - 'actionField': { - 'id':'[{$_gtmOrder->oxorder__oxordernr->value}]', - 'affiliation':'[{$oxcmp_shop->oxshops__oxname->value}]', - 'revenue':'[{$_gtmOrder->oxorder__oxtotalordersum->value}]', - 'tax':'[{math equation="x+y" x=$_gtmOrder->oxorder__oxartvatprice1->value y=$_gtmOrder->oxorder__oxartvatprice2->value }]', - 'shipping':'[{$_gtmOrder->oxorder__oxdelcost->value}]', - 'currency': "[{$_gtmOrder->getFieldData('oxcurrency')}]" - }, - 'products':[ - [{foreach from=$_gtmArticles item="_gtmArticle" name="gtmArticles"}] - { - 'id':'[{$_gtmArticle->oxorderarticles__oxartnum->value}]', - 'name': '[{$_gtmArticle->oxorderarticles__oxtitle->value}]', - 'variant':'[{$_gtmArticle->oxorderarticles__oxselvariant->value}]', - 'price': [{$_gtmArticle->oxorderarticles__oxprice->value}], - 'quantity':[{$_gtmArticle->oxorderarticles__oxamount->value}], - 'position':[{$smarty.foreach.gtmArticles.iteration}] - }[{if !$smarty.foreach.gtmArticles.last}],[{/if}] - [{/foreach}] - ] + 'transaction_id':'[{$_gtmOrder->oxorder__oxordernr->value}]', + 'affiliation':'[{$oxcmp_shop->oxshops__oxname->value}]', + 'value':'[{$_gtmOrder->oxorder__oxtotalordersum->value}]', + 'tax':'[{math equation="x+y" x=$_gtmOrder->oxorder__oxartvatprice1->value y=$_gtmOrder->oxorder__oxartvatprice2->value }]', + 'shipping':'[{$_gtmOrder->oxorder__oxdelcost->value}]', + 'currency': "[{$_gtmOrder->getFieldData('oxcurrency')}]" + 'items': + [ + [{foreach from=$_gtmArticles item="_gtmArticle" name="gtmArticles"}] + { + 'id':'[{$_gtmArticle->oxorderarticles__oxartnum->value}]', + 'name': '[{$_gtmArticle->oxorderarticles__oxtitle->value}]', + 'variant':'[{$_gtmArticle->oxorderarticles__oxselvariant->value}]', + 'price': [{$_gtmArticle->oxorderarticles__oxprice->value}], + 'quantity':[{$_gtmArticle->oxorderarticles__oxamount->value}], + 'position':[{$smarty.foreach.gtmArticles.iteration}] + }[{if !$smarty.foreach.gtmArticles.last}],[{/if}] + [{/foreach}] + ] } } - }); + }) [{/strip}] [{$smarty.block.parent}] diff --git a/Application/views/blocks/detail.tpl b/Application/views/blocks/detail.tpl index d18bba6..bf4322a 100644 --- a/Application/views/blocks/detail.tpl +++ b/Application/views/blocks/detail.tpl @@ -2,26 +2,24 @@ [{assign var="gtmProduct" value=$oView->getProduct()}] [{assign var="gtmCategory" value=$gtmProduct->getCategory()}] [{assign var="gtmManufacturer" value=$gtmProduct->getManufacturer()}] -[{strip}][{/strip}] + \ No newline at end of file