fix bug that would display cat path
This commit is contained in:
parent
a5378ec70e
commit
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()}]
|
||||
|
Loading…
Reference in New Issue
Block a user