{extends_parent}

{block "header"}
   {include "components/header.tpl"}
{/block}

{block "cart-header"}{/block}

{block "cart-title"}
   <h1>{$view->getTitle()}<span class="count"><span data-reload="cart-pieces-header">({$body.totalPieces})</span></span></h1>
{/block}

{block "cart-also_bought"}
   {if $body.products}
      {if $smarty.get.generate_alsobought}
         <div data-generate_alsobought>
            {* ajaxove se nacita do postranniho kosiku *}
            {insert_products type="cart_product" products=$body.products count=8 image=2
            fallback=[['type'=>'related_product', 'products'=>$body.products], ['type'=>'bestselling_product', 'price_max'=>1200, 'order'=>'RAND()']]}
         </div>
      {else}
         <hr>
         <div class="container">
            <h2 class="text-center">{t}Mohlo by se vám líbit{/t}</h2>
            {insert_products type="cart_product" in_store=true image_exists=true products=$body.products count=4 image=2 fallback=[['type'=>'related_product', 'products'=>$body.products], ['type'=>'bestselling_product', 'price_max'=>1200, 'order'=>'RAND()']]}
         </div>
      {/if}
   {/if}
{/block}
