From fd2b4a5bbe433de712c418febad43a175dd60373 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Wed, 22 Feb 2023 13:46:27 +0100 Subject: [PATCH 1/3] add special price formatting --- Application/views/blocks/checkout_s1.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/views/blocks/checkout_s1.tpl b/Application/views/blocks/checkout_s1.tpl index 79bfee6..498b7dc 100644 --- a/Application/views/blocks/checkout_s1.tpl +++ b/Application/views/blocks/checkout_s1.tpl @@ -4,6 +4,8 @@ [{assign var='gtmCartArticles' value=$oView->getBasketArticles()}] [{strip}][{capture assign=d3_ga4_view_cart}] + let iPrice = "[{oxprice price=$oxcmp_basket->getPrice()}]"; + dataLayer.push({"event": null, "eventLabel": null, "ecommerce": null}); /* Clear the previous ecommerce object. */ dataLayer.push({ 'event': 'view_cart', @@ -11,7 +13,7 @@ 'ecommerce': { 'actionField': "step: 1", 'currency': "[{$currency->name}]", - 'value': [{oxprice price=$oxcmp_basket->getPrice()}], + 'value': iPrice.replace("€", ""), 'items': [ [{foreach from=$oxcmp_basket->getContents() item=basketitem name=gtmCartContents key=basketindex}] [{assign var='_price' value=$basketitem->getUnitPrice()}] From 8f9ed021d624bedf0e0c79f96b866b9d3f426924 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Wed, 22 Feb 2023 14:07:14 +0100 Subject: [PATCH 2/3] bump version --- CHANGELOG.md | 4 ++++ metadata.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e570d22..f70df9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.2.2](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.2.1...2.2.2) - 2023-02-22 +### Fixed +- price formatting in view_cart + ## [2.2.1](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.1.1...2.2.1) - 2023-02-21 ### Added - cookie handling diff --git a/metadata.php b/metadata.php index 447b9aa..87f7b6c 100755 --- a/metadata.php +++ b/metadata.php @@ -17,7 +17,7 @@ $aModule = [ Die Entwicklung basiert auf einem Fork von Marat Bedoev - Github-Link ", 'thumbnail' => 'thumbnail.png', - 'version' => '2.2.1', + 'version' => '2.2.2', 'author' => 'Data Development (Inh.: Thomas Dartsch)', 'email' => 'support@shopmodule.com', 'url' => 'https://www.oxidmodule.com/', From 2f6fd8a31cae2218099fa825755dd06122069bc6 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Wed, 1 Feb 2023 15:42:59 +0100 Subject: [PATCH 3/3] bump version --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f70df9f..c251d0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + ## [2.2.2](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.2.1...2.2.2) - 2023-02-22 ### Fixed - price formatting in view_cart @@ -25,11 +26,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - using of ContainerFactory in ViewConfig +## [1.2.1](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/1.2...1.2.1) - 2023-02-22 +### Fixed +- price formatting view_cart + +## [1.2](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/1.1...1.2) - 2023-02-01 +### Added +- own cookie-check-handler + ## [1.1](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/1.0...1.1) - 2023-01-27 ### Added - block section for add_to_basket js - template block order positions +### Changed +- switched price formatting + + ## [1.0](https://git.d3data.de/D3Public/GoogleAnalytics4/releases/tag/1.0) - 2023-01-20 ### Added - publication of app features \ No newline at end of file