103 lines
3.5 KiB
Smarty
103 lines
3.5 KiB
Smarty
{extends "ordering.tpl"}
|
|
|
|
{block "cart-title"}
|
|
{if $cfg.tpl.summary_sidebar.version != 2}
|
|
<h1>{$view->getTitle()}</h1>
|
|
{/if}
|
|
{/block}
|
|
{block "content"}
|
|
{block "b2b-user-buttons"}
|
|
{if $isB2BUser}
|
|
<div class="b2b-cart-action-btns">
|
|
<a href="" data-wpj-focus="{path('kupshop_content_focus_focuslazy', ['template' => 'order-import'])}" class="btn btn-secondary">{t}Import objednávky{/t}</a>
|
|
{*<a href="?act=eraseall" class="btn btn-secondary" onClick="return confirm('{t}Skutečně chcete smazat všechny položky z košíku?{/t}')">{t}Vymazat košík{/t}</a> todo *}
|
|
</div>
|
|
{/if}
|
|
{/block}
|
|
{block "cart-header"}
|
|
{if $cfg.tpl.summary_sidebar.version != 2}
|
|
<div class="cart-header">
|
|
<p class="title-default">{t}Produkty v košíku{/t}</p>
|
|
{ifmodule SHOPPING_LIST}
|
|
{if $ctrl.logged}
|
|
<div class="cart-shopping_list-links">
|
|
<a href="" data-focus-opener="shopping-list"><span class="fc icons_shopping-list"></span> {t}Přidat do seznamu{/t}</a>
|
|
</div>
|
|
{/if}
|
|
{/ifmodule}
|
|
|
|
{if $tpl_vars.voucher_in_first_step and !$ctrl.logged}
|
|
<p>{t}Již u nás máte účet?{/t} <a href="{url s=login}" class="cart-signin" data-wpj-modal="/_modal/lazy/login" data-wpj-modal-type="side">{t}Přihlaste se{/t}</a>.</p>
|
|
{elseif !$tpl_vars.voucher_in_first_step}
|
|
<p>{t}Slevový kupón lze uplatnit v posledním kroku objednávky.{/t}</p>
|
|
{/if}
|
|
</div>
|
|
{else}
|
|
<h1>{$view->getTitle()}<span class="count"><span data-reload="cart-pieces-header">({$body.totalPieces})</span></span></h1>
|
|
{/if}
|
|
{/block}
|
|
{include "ordering/ordering.products.tpl"}
|
|
{/block}
|
|
|
|
{block 'cart-footer'}
|
|
<div class="cart-footer">
|
|
<div data-reload="cart-footer">
|
|
{block "shipping-progress"}
|
|
{include "components/shipping-progress.tpl" cartPrice=$body->getTotalPriceForDelivery()->getPriceWithVat(false)}
|
|
|
|
{block "shipping-progress-append"}{/block}
|
|
{/block}
|
|
|
|
{ifmodule ORDER_DISCOUNT}
|
|
{insert_discounts_actions cart=$body type='half' assign='discountsActions'}
|
|
{foreach $discountsActions as $discountAction}
|
|
{$discountAction nofilter}
|
|
{/foreach}
|
|
{/ifmodule}
|
|
</div>
|
|
|
|
<div>
|
|
{block "voucher"}
|
|
{block "voucher-prepend"}{/block} {* odstranit blok, pouzit normalni prepend *}
|
|
|
|
{if $tpl_vars.voucher_in_first_step}
|
|
{ifmodule ORDER_DISCOUNT}
|
|
{insert_discounts_triggers}
|
|
{/ifmodule}
|
|
{include "ordering/ordering.voucher.tpl"}
|
|
{/if}
|
|
{/block}
|
|
|
|
{include "ordering/ordering.pricebox.tpl" transport=0}
|
|
|
|
{ifmodule BONUS_PROGRAM}
|
|
{include "bonus-program/bonus-program-cart.tpl"}
|
|
{/ifmodule}
|
|
|
|
{block 'pricebox-append'}{/block}
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
|
|
{block 'cart-btns'}
|
|
{if !$tpl_vars.btns_in_sidebar or !$tpl_vars.cart_sidebar}
|
|
{include "ordering/ordering.btns.tpl" submitName='OrderNext' valueNext='delivery'}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block "main" append}
|
|
{ifmodule SHOPPING_LIST}
|
|
{if $ctrl.logged}
|
|
{include "focus/focus.add-shopping-list.tpl" class="shopping-list" cart=true}
|
|
{/if}
|
|
{/ifmodule}
|
|
{/block}
|
|
|
|
{block "js-dynamic-load" append}
|
|
<script>
|
|
$('#cart').cart({
|
|
js_shop_reload_event: true
|
|
});
|
|
</script>
|
|
{/block}
|