cleaning + rm unnecessary " } "

This commit is contained in:
MaxBUhe 2023-01-11 15:31:56 +01:00
parent 9ae1afa326
commit 2b864f41e8
1 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,5 @@
[{$smarty.block.parent}]
[{strip}]
<script>
dataLayer.push({"event": null, "eventLabel": null, "ecommerce": null}); /* Clear the previous ecommerce object. */
@ -13,7 +15,7 @@
'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')}]"
'currency': '[{$_gtmOrder->getFieldData('oxcurrency')}]',
'items':
[
[{foreach from=$_gtmArticles item="_gtmArticle" name="gtmArticles"}]
@ -28,8 +30,6 @@
[{/foreach}]
]
}
}
})
</script>
[{/strip}]
[{$smarty.block.parent}]