From d531ba648bb454a30804eabdfe6f70da2fd85944 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Fri, 12 May 2023 14:06:21 +0200 Subject: [PATCH] fix unnecessary convert of int to str --- Application/views/blocks/checkout_s5.tpl | 6 +++--- Application/views/ga4/add_to_cart.tpl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/views/blocks/checkout_s5.tpl b/Application/views/blocks/checkout_s5.tpl index de97f30..0531e42 100644 --- a/Application/views/blocks/checkout_s5.tpl +++ b/Application/views/blocks/checkout_s5.tpl @@ -12,9 +12,9 @@ 'ecommerce': { 'transaction_id': '[{$_gtmOrder->getFieldData("oxordernr")}]', 'affiliation': '[{$oxcmp_shop->getFieldData("oxname")}]', - 'value': '[{$_gtmOrder->getTotalOrderSum()}]', - 'tax': '[{math equation="x+y" x=$_gtmOrder->getFieldData("oxartvatprice1") y=$_gtmOrder->getFieldData("oxartvatprice2") }]', - 'shipping': '[{$_gtmOrder->getFieldData("oxdelcost")}]', + 'value': [{$_gtmOrder->getTotalOrderSum()}], + 'tax': [{math equation="x+y" x=$_gtmOrder->getFieldData("oxartvatprice1") y=$_gtmOrder->getFieldData("oxartvatprice2") }], + 'shipping': [{$_gtmOrder->getFieldData("oxdelcost")}], 'currency': '[{$_gtmOrder->getFieldData('oxcurrency')}]', 'items': [ diff --git a/Application/views/ga4/add_to_cart.tpl b/Application/views/ga4/add_to_cart.tpl index 7a06dea..f431bc9 100644 --- a/Application/views/ga4/add_to_cart.tpl +++ b/Application/views/ga4/add_to_cart.tpl @@ -22,7 +22,7 @@ { 'item_id': '[{$gtmProduct->getFieldData('oxartnum')}]', 'item_name': '[{$gtmProduct->getFieldData('oxtitle')}]', - 'price': '[{$d3PriceObject->getPrice()}]', + 'price': [{$d3PriceObject->getPrice()}], 'item_brand': '[{if $gtmManufacturer}][{$gtmManufacturer->oxmanufacturers__oxtitle->value}][{/if}]', 'item_variant': '[{if $gtmProduct->getFieldData('oxvarselect')}][{$gtmProduct->getFieldData('oxvarselect')}][{/if}]', 'item_category': itemCategories[0] || 'no category',