fix bug that would display cat path
Cette révision appartient à :
Parent
a5378ec70e
révision
633c1336a8
@ -2,12 +2,6 @@
|
||||
|
||||
[{assign var="breadCrumb" value=''}]
|
||||
|
||||
[{foreach from=$oView->getBreadCrumb() item=sCrum}]
|
||||
[{if $sCrum.title }]
|
||||
[{$breadCrumb|cat:$sCrum.title|cat:" > "}]
|
||||
[{/if}]
|
||||
[{/foreach}]
|
||||
|
||||
[{if $gtmProducts|@count}]
|
||||
[{strip}]
|
||||
<script>
|
||||
@ -18,7 +12,7 @@
|
||||
'event_name': 'view_item_list',
|
||||
'ecommerce': {
|
||||
'item_list_id': '[{$oView->getCategoryId()}]',
|
||||
'item_list_name': '[{$breadCrumb}]',
|
||||
'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="gtmManufacturer" value=$gtmProduct->getManufacturer()}]
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user