diff --git a/Application/views/blocks/detail.tpl b/Application/views/blocks/detail.tpl
deleted file mode 100644
index bf4322a..0000000
--- a/Application/views/blocks/detail.tpl
+++ /dev/null
@@ -1,25 +0,0 @@
-[{$smarty.block.parent}]
-[{assign var="gtmProduct" value=$oView->getProduct()}]
-[{assign var="gtmCategory" value=$gtmProduct->getCategory()}]
-[{assign var="gtmManufacturer" value=$gtmProduct->getManufacturer()}]
-
-
\ No newline at end of file
diff --git a/Application/views/blocks/view_item.tpl b/Application/views/blocks/view_item.tpl
new file mode 100644
index 0000000..81e21b7
--- /dev/null
+++ b/Application/views/blocks/view_item.tpl
@@ -0,0 +1,26 @@
+[{$smarty.block.parent}]
+[{assign var="gtmProduct" value=$oView->getProduct()}]
+[{assign var="gtmCategory" value=$gtmProduct->getCategory()}]
+[{assign var="gtmManufacturer" value=$gtmProduct->getManufacturer()}]
+
+
\ No newline at end of file
diff --git a/Application/views/blocks/widget_product_list.tpl b/Application/views/blocks/widget_product_list.tpl
deleted file mode 100644
index 4438bd6..0000000
--- a/Application/views/blocks/widget_product_list.tpl
+++ /dev/null
@@ -1,35 +0,0 @@
-[{$smarty.block.parent}]
-[{assign var="gtmProduct" value=$oView->getProduct()}]
-[{assign var="gtmCategory" value=$gtmProduct->getCategory()}]
-[{assign var="gtmManufacturer" value=$gtmProduct->getManufacturer()}]
-
-
\ No newline at end of file
diff --git a/Application/views/ga4/view_item_list.tpl b/Application/views/ga4/view_item_list.tpl
index 0f9a99f..0f9e165 100644
--- a/Application/views/ga4/view_item_list.tpl
+++ b/Application/views/ga4/view_item_list.tpl
@@ -1,5 +1,5 @@
+[{$smarty.block.parent}]
[{assign var="gtmProducts" value=$products}]
-[{assign var="d3PriceObject" value=$gtmProducts->getPrice()}]
[{assign var="breadCrumb" value=''}]
@@ -16,6 +16,7 @@
'item_list_name': '[{foreach from=$oView->getBreadCrumb() item=sCrum}][{if $sCrum.title }][{$breadCrumb|cat:$sCrum.title|cat:" > "}][{/if}][{/foreach}]',
'items': [
[{foreach from=$gtmProducts name="gtmProducts" item="gtmProduct"}]
+ [{assign var="d3PriceObject" value=$gtmProduct->getPrice()}]
[{assign var="gtmManufacturer" value=$gtmProduct->getManufacturer()}]
[{if !$gtmCategory}][{assign var="gtmCategory" value=$gtmProduct->getCategory()}][{/if}]
{
diff --git a/metadata.php b/metadata.php
index 5122de4..bbca91a 100755
--- a/metadata.php
+++ b/metadata.php
@@ -43,17 +43,11 @@ $aModule = [
'block' => 'theme_svg_icons',
'file' => '/Application/views/blocks/_gtm_nojs.tpl'
],
- // widget_product_list
- [
- 'template' => 'widget/product/list.tpl',
- 'block' => 'widget_product_list',
- 'file' => '/Application/views/blocks/widget_product_list.tpl'
- ],
// details
[
'template' => 'page/details/inc/productmain.tpl',
'block' => 'details_productmain_title',
- 'file' => '/Application/views/blocks/detail.tpl',
+ 'file' => '/Application/views/blocks/view_item.tpl',
'position' => 150
],
// checkout
@@ -71,7 +65,7 @@ $aModule = [
// view_item_list
[
'template' => 'widget/product/list.tpl',
- 'block' => 'd3Ga4_view_item_list',
+ 'block' => 'widget_product_list',
'file' => '/Application/views/ga4/view_item_list.tpl',
'position' => 150
],