rather using basket_component to get formatted price

This commit is contained in:
MaxBUhe 2023-01-25 14:30:59 +01:00
parent 4f73f18080
commit 120c765d0c

View File

@ -11,7 +11,7 @@
'ecommerce': { 'ecommerce': {
'actionField': "step: 1", 'actionField': "step: 1",
'currency': "[{$currency->name}]", 'currency': "[{$currency->name}]",
'value': [{$oxcmp_basket->getBruttoSum()}], 'value': [{oxprice price=$oxcmp_basket->getPrice()}],
'items': [ 'items': [
[{foreach from=$oxcmp_basket->getContents() item=basketitem name=gtmCartContents key=basketindex}] [{foreach from=$oxcmp_basket->getContents() item=basketitem name=gtmCartContents key=basketindex}]
[{assign var='_price' value=$basketitem->getUnitPrice()}] [{assign var='_price' value=$basketitem->getUnitPrice()}]