From d505d8530a799db4187939a2e4f98effdfbc0d2f Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Fri, 23 Jun 2023 15:08:09 +0200 Subject: [PATCH] rm unnecessary code --- Application/views/blocks/_gtm_js.tpl | 38 ++++++++++++---------------- metadata.php | 8 ++---- 2 files changed, 18 insertions(+), 28 deletions(-) diff --git a/Application/views/blocks/_gtm_js.tpl b/Application/views/blocks/_gtm_js.tpl index d3d1075..de0cb3e 100755 --- a/Application/views/blocks/_gtm_js.tpl +++ b/Application/views/blocks/_gtm_js.tpl @@ -4,28 +4,22 @@ [{if $oViewConf->D3blShowGtmScript()}] - [{if $oViewConf->getGtmContainerId()}][{strip}] - - - - - [{if $oViewConf->getTopActionClassName() === "alist" }] - [{* include file="ga4_view_item_list.tpl" gtmCategory=$oView->getActiveCategory() gtmProducts=$oView->getArticleList() listtype=$oView->getListType() *}] - [{elseif $oViewConf->getTopActionClassName() === "details" }] - [{* include file="ga4_view_item.tpl" gtmProduct=$oView->getProduct() *}] - [{elseif $oViewConf->getTopActionClassName() === "search" }] - [{elseif $oViewConf->getTopActionClassName() === "basket" }] - [{/if}] - [{/strip}][{/if}] + [{if $oViewConf->getGtmContainerId()}] + [{strip}] + + + + [{/strip}] [{/if}] +[{/if}] [{$smarty.block.parent}] \ No newline at end of file diff --git a/metadata.php b/metadata.php index 917c04e..d04f484 100755 --- a/metadata.php +++ b/metadata.php @@ -22,7 +22,7 @@ $aModule = [ Die Entwicklung basiert auf einem Fork von Marat Bedoev - Github-Link ", 'thumbnail' => 'thumbnail.png', - 'version' => '2.7.0', + 'version' => '2.8.0', 'author' => 'Data Development (Inh.: Thomas Dartsch)', 'email' => 'support@shopmodule.com', 'url' => 'https://www.oxidmodule.com/', @@ -31,11 +31,7 @@ $aModule = [ OECategory::class => Category::class, OEBasket::class => Basket::class ], - 'templates' => [ - // GA4 events - 'ga4_add_to_cart.tpl' => 'd3/googleanalytics4/Application/views/ga4/add_to_cart.tpl', - 'ga4_view_item_list.tpl' => 'd3/googleanalytics4/Application/views/ga4/view_item_list.tpl', - ], + 'templates' => [], 'blocks' => [ // tag manager js [