45 lines
1.3 KiB
Smarty
45 lines
1.3 KiB
Smarty
{extends "ordering.tpl"}
|
|
|
|
{block "header"}
|
|
{include 'components/header/header.tpl'}
|
|
{/block}
|
|
|
|
{block "order-content"}
|
|
<div class="cart-heading">
|
|
<h1 data-reload="ordering-total-count">{$view->getTitle()}</h1>
|
|
</div>
|
|
<div data-reload="cart">
|
|
{if $body.products}
|
|
{include "ordering/ordering.products.tpl"}
|
|
|
|
{* dárky, příplatky *}
|
|
{ifmodule ORDER_DISCOUNT}
|
|
{* sort handlers = [1 - gifts, 0 - charges] *}
|
|
{insert_discounts_actions cart=$body type='full' sort=[1, 0] assign='discountsActions'}
|
|
{foreach $discountsActions as $discountAction}
|
|
{$discountAction nofilter}
|
|
{/foreach}
|
|
{/ifmodule}
|
|
{else}
|
|
<p class="alert alert-info">{t}Váš košík je prázdný :({/t}</p>
|
|
{/if}
|
|
|
|
{$totalPrice = $body->getTotalPriceForDelivery()->getPriceWithVat()}
|
|
|
|
{include "components/shipping-progress.tpl" cartPrice=$totalPrice}
|
|
</div>
|
|
{/block}
|
|
|
|
{block "cart-also_bought"}
|
|
{*{if $body.products}
|
|
{insert_products type="cart_product" products=$body.products in_store=1 count=8 image=2 assign="also_bought"
|
|
template="catalog/block.products.also_bought.tpl"}
|
|
{/if}*}
|
|
{/block}
|
|
|
|
{block "js-dynamic-load" append}
|
|
<script>
|
|
$('#cart').cart();
|
|
</script>
|
|
{/block}
|