first commit
This commit is contained in:
31
web/templates/koza/block.analytics.gtm.tpl
Normal file
31
web/templates/koza/block.analytics.gtm.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
{switch $pageType}
|
||||
{case "category"}
|
||||
{if $body.category.id and $bestsellingproducts}
|
||||
{include 'block.data.layers.tpl' pageType='category' context=['activeCategory' => $activeCategory, 'bestsellingproducts' => $bestsellingproducts.products]}
|
||||
{else}
|
||||
{include 'block.data.layers.tpl' pageType='category' context=['activeCategory' => $activeCategory]}
|
||||
{/if}
|
||||
{/case}
|
||||
{case "home"}
|
||||
{include 'block.data.layers.tpl' pageType='home' context=[]}
|
||||
{/case}
|
||||
{case "conversion"}
|
||||
{include 'block.data.layers.tpl' pageType='conversion' context=[] get_conversion=true}
|
||||
{/case}
|
||||
{case "cart"}
|
||||
{include 'block.data.layers.tpl' pageType='cart' context=[]}
|
||||
{/case}
|
||||
{case "search"}
|
||||
{include 'block.data.layers.tpl' pageType='search' context=[]}
|
||||
{/case}
|
||||
{case "product"}
|
||||
{*{get_serie assign=serie id_product=$body.product.id}
|
||||
{if $cfg.module.reviews}
|
||||
{get_ratings assign=ratings id_product=$body.product.id}
|
||||
{/if}
|
||||
{$body.product.variations = $body.product->fetchVariationsParameters()}*}
|
||||
{include 'block.data.layers.product.tpl'}
|
||||
{/case}
|
||||
{default}
|
||||
{include 'block.data.layers.tpl' pageType='other' context=[]}
|
||||
{/switch}
|
||||
Reference in New Issue
Block a user