switch metadata entries; fix getPrice-bug
This commit is contained in:
parent
af78809ae5
commit
002cc69d2a
@ -1,6 +1,7 @@
|
|||||||
[{$smarty.block.parent}]
|
[{$smarty.block.parent}]
|
||||||
|
|
||||||
[{assign var="d3PriceObject" value=$gtmProduct->getPrice()}]
|
[{assign var="d3ProductObject" value=$oView->getProduct()}]
|
||||||
|
[{assign var="d3PriceObject" value=$d3ProductObject->getPrice()}]
|
||||||
|
|
||||||
[{capture assign=d3_ga4_add_to_cart}]
|
[{capture assign=d3_ga4_add_to_cart}]
|
||||||
[{block name="d3_ga4_add_to_basket"}]
|
[{block name="d3_ga4_add_to_basket"}]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
[{$smarty.block.parent}]
|
||||||
[{assign var="gtmProducts" value=$products}]
|
[{assign var="gtmProducts" value=$products}]
|
||||||
[{assign var="d3PriceObject" value=$gtmProducts->getPrice()}]
|
|
||||||
|
|
||||||
[{assign var="breadCrumb" value=''}]
|
[{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}]',
|
'item_list_name': '[{foreach from=$oView->getBreadCrumb() item=sCrum}][{if $sCrum.title }][{$breadCrumb|cat:$sCrum.title|cat:" > "}][{/if}][{/foreach}]',
|
||||||
'items': [
|
'items': [
|
||||||
[{foreach from=$gtmProducts name="gtmProducts" item="gtmProduct"}]
|
[{foreach from=$gtmProducts name="gtmProducts" item="gtmProduct"}]
|
||||||
|
[{assign var="d3PriceObject" value=$gtmProduct->getPrice()}]
|
||||||
[{assign var="gtmManufacturer" value=$gtmProduct->getManufacturer()}]
|
[{assign var="gtmManufacturer" value=$gtmProduct->getManufacturer()}]
|
||||||
[{if !$gtmCategory}][{assign var="gtmCategory" value=$gtmProduct->getCategory()}][{/if}]
|
[{if !$gtmCategory}][{assign var="gtmCategory" value=$gtmProduct->getCategory()}][{/if}]
|
||||||
{
|
{
|
||||||
|
10
metadata.php
10
metadata.php
@ -43,17 +43,11 @@ $aModule = [
|
|||||||
'block' => 'theme_svg_icons',
|
'block' => 'theme_svg_icons',
|
||||||
'file' => '/Application/views/blocks/_gtm_nojs.tpl'
|
'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
|
// details
|
||||||
[
|
[
|
||||||
'template' => 'page/details/inc/productmain.tpl',
|
'template' => 'page/details/inc/productmain.tpl',
|
||||||
'block' => 'details_productmain_title',
|
'block' => 'details_productmain_title',
|
||||||
'file' => '/Application/views/blocks/detail.tpl',
|
'file' => '/Application/views/blocks/view_item.tpl',
|
||||||
'position' => 150
|
'position' => 150
|
||||||
],
|
],
|
||||||
// checkout
|
// checkout
|
||||||
@ -71,7 +65,7 @@ $aModule = [
|
|||||||
// view_item_list
|
// view_item_list
|
||||||
[
|
[
|
||||||
'template' => 'widget/product/list.tpl',
|
'template' => 'widget/product/list.tpl',
|
||||||
'block' => 'd3Ga4_view_item_list',
|
'block' => 'widget_product_list',
|
||||||
'file' => '/Application/views/ga4/view_item_list.tpl',
|
'file' => '/Application/views/ga4/view_item_list.tpl',
|
||||||
'position' => 150
|
'position' => 150
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user