{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}
