cleaning + rm unnecessary " } "

This commit is contained in:
MaxBUhe 2023-01-11 15:31:56 +01:00
parent 9ae1afa326
commit 2b864f41e8

View File

@ -1,3 +1,5 @@
[{$smarty.block.parent}]
[{strip}] [{strip}]
<script> <script>
dataLayer.push({"event": null, "eventLabel": null, "ecommerce": null}); /* Clear the previous ecommerce object. */ dataLayer.push({"event": null, "eventLabel": null, "ecommerce": null}); /* Clear the previous ecommerce object. */
@ -13,7 +15,7 @@
'value': '[{$_gtmOrder->oxorder__oxtotalordersum->value}]', 'value': '[{$_gtmOrder->oxorder__oxtotalordersum->value}]',
'tax': '[{math equation="x+y" x=$_gtmOrder->oxorder__oxartvatprice1->value y=$_gtmOrder->oxorder__oxartvatprice2->value }]', 'tax': '[{math equation="x+y" x=$_gtmOrder->oxorder__oxartvatprice1->value y=$_gtmOrder->oxorder__oxartvatprice2->value }]',
'shipping': '[{$_gtmOrder->oxorder__oxdelcost->value}]', 'shipping': '[{$_gtmOrder->oxorder__oxdelcost->value}]',
'currency': "[{$_gtmOrder->getFieldData('oxcurrency')}]" 'currency': '[{$_gtmOrder->getFieldData('oxcurrency')}]',
'items': 'items':
[ [
[{foreach from=$_gtmArticles item="_gtmArticle" name="gtmArticles"}] [{foreach from=$_gtmArticles item="_gtmArticle" name="gtmArticles"}]
@ -28,8 +30,6 @@
[{/foreach}] [{/foreach}]
] ]
} }
}
}) })
</script> </script>
[{/strip}] [{/strip}]
[{$smarty.block.parent}]