[{$smarty.block.parent}] [{assign var="sAcceptCookies" value=$oViewConf->getOxCookie('acceptCookies')}] [{capture assign="dataLayerDetail"}] [{assign var="oCurrency" value=$oView->getActCurrency()}] [{strip}] const cat = $('.breadcrumb-item.active').text(); [{assign var="oActCategory" value=$oDetailsProduct->getCategory()}] window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'event': 'productView', 'ecommerce': { 'currencyCode': '[{$oCurrency->name}]', 'detail': { 'products': [ { 'name': '[{$oDetailsProduct->oxarticles__oxtitle->value|strip_tags}]', 'id': '[{$oDetailsProduct->oxarticles__oxartnum->value}]', 'price': [{$price->getPrice()}], 'brand':[{if $oDetailsProduct->isSoloByAlko()}]'solobyAL-KO'[{else}]'AL-KO'[{/if}], 'category': [{if $oActCategory}]'[{$oActCategory->getTitle()}]'[{else}]cat[{/if}], 'dimension10': [{if $oActCategory}]'[{$oActCategory->getIdWithoutShopId()}]'[{else}]0[{/if}] } ] } } }); [{assign var="oAccessoriesList" value=$oView->getAccessoires()}] [{if $oAccessoriesList && $oAccessoriesList|count >0}] window.dataLayer.push({ 'event': 'productImpression', 'ecommerce': { 'currencyCode': '[{$oCurrency->name}]', 'impressions': [ [{foreach from=$oAccessoriesList item="oAccProduct" key="sIndex" name="accessoriesList"}] { 'name': '[{$oAccProduct->oxarticles__oxtitle->value|strip_tags}]', 'id': '[{$oAccProduct->oxarticles__oxartnum->value}]', 'price': '[{$oAccProduct->oxarticles__oxprice->value}]', 'brand':[{if $oDetailsProduct->isSoloByAlko()}]'solobyAL-KO'[{else}]'AL-KO'[{/if}], 'category': [{if $oActCategory}]'[{$oActCategory->getTitle()}]'[{else}]cat[{/if}], 'dimension10': [{if $oActCategory}]'[{$oActCategory->getIdWithoutShopId()}]'[{else}]0[{/if}], 'list': 'Productdetail – Accessory: Page 1', 'position': [{$smarty.foreach.accessoriesList.iteration}] }, [{/foreach}] ] }}); [{/if}] [{assign var="oCrossSellingList" value=$oView->getCrossSelling()}] [{if $oCrossSellingList && $oCrossSellingList|count >0}] window.dataLayer.push({ 'event': 'productImpression', 'ecommerce': { 'currencyCode': '[{$oCurrency->name}]', 'impressions': [ [{foreach from=$oCrossSellingList item="oCrossProduct" key="sIndex" name="crossSellingList"}] { 'name': '[{$oCrossProduct->oxarticles__oxtitle->value|strip_tags}]', 'id': '[{$oCrossProduct->oxarticles__oxartnum->value}]', 'price': '[{$oCrossProduct->oxarticles__oxprice->value}]', 'brand':[{if $oDetailsProduct->isSoloByAlko()}]'solobyAL-KO'[{else}]'AL-KO'[{/if}], 'category': [{if $oActCategory}]'[{$oActCategory->getTitle()}]'[{else}]cat[{/if}], 'dimension10': [{if $oActCategory}]'[{$oActCategory->getIdWithoutShopId()}]'[{else}]0[{/if}], 'list': 'Productdetail – CrossSelling: Page 1', 'position': [{$smarty.foreach.crossSellingList.iteration}] }, [{/foreach}] ] }}); [{/if}] [{/strip}] [{/capture}] [{if $sAcceptCookies == 1}] [{oxscript add=$dataLayerDetail}] [{/if}]