98 lines
3.8 KiB
Smarty
98 lines
3.8 KiB
Smarty
{* @compiler:inline-only *}
|
|
{if $cfg.tpl.summary_sidebar.version == 2}
|
|
{include "ordering/ordering.summary-sidebar.v2.tpl"}
|
|
{else}
|
|
{block 'sidebar-prepend'}{/block}
|
|
<div class="summary-sidebar">
|
|
|
|
{block "user-manager-select"}
|
|
{ifmodule USER_MANAGER}
|
|
{if $ctrl.logged and $body.stepName == 'cart'}
|
|
{$users_select_title = "{t}Vyberte pobočku{/t}"}
|
|
{user_manager_insert_users_select title=$users_select_title activeOnly=true}
|
|
{/if}
|
|
{/ifmodule}
|
|
{/block}
|
|
|
|
{if $body.stepName != 'cart'}
|
|
{$totalCount = 0}
|
|
{foreach $body.products as $item}
|
|
{$totalCount = $totalCount + $item.pieces}
|
|
{/foreach}
|
|
{block "sidebar-title"}
|
|
<p class="title-default"{if $body.products|count > 5} data-opener="[data-summary-sidebar-products]"{/if}>{t}Souhrn objednávky{/t}
|
|
<span>{$totalCount} {t}ks{/t}</span></p>
|
|
{/block}
|
|
|
|
{if $isLastStep}
|
|
<p class="check-order-msg">{t}Překontrolujte si košík a odešlete objednávku.{/t}</p>
|
|
{/if}
|
|
|
|
{block "sidebar-products"}
|
|
<div {if $body.products|count > 5}data-summary-sidebar-products data-simplebar data-simplebar-auto-hide="false"{/if}>
|
|
<div class="summary-sidebar-productlist">
|
|
<div class="summary-sidebar-productlist-inner">
|
|
{if $body.products}
|
|
{include "ordering/ordering.summary.products.tpl" items=$body.products|array_reverse}
|
|
{else}
|
|
<p class="no-items">{t}V košíku nemáte žádné zboží.{/t}</p>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{/if}
|
|
|
|
{block "sidebar-delivery"}
|
|
{if $deliveryType}
|
|
<div class="summary-sidebar-delivery-wrapper">
|
|
{$delivery = $deliveryType->getDelivery()}
|
|
<div class="summary-sidebar-delivery">
|
|
{if $delivery}
|
|
{get_deliveries_dates cart=$body assign='deliveriesDates'}
|
|
{$date = $deliveriesDates[$delivery.id].date}
|
|
<p class="title">{t}Doprava{/t}</p>
|
|
<p>
|
|
{$delivery.name}
|
|
{if $date and $delivery->isInPerson()}
|
|
- {t escape=false}k vyzvednutí{/t} {$date|format_date_locale_pretty:'d. L. Y'}
|
|
{elseif $date}
|
|
- {t}předpokládané doručení{/t} {$date|format_date_locale_pretty:'d. L. Y'}
|
|
{/if}
|
|
</p>
|
|
{/if}
|
|
</div>
|
|
{$payment = $deliveryType->getPayment()}
|
|
<div class="summary-sidebar-delivery">
|
|
<p class="title">{t}Platba{/t}</p>
|
|
{if $payment}
|
|
{$method = $payment->getSelectedMethod()}
|
|
{if $method}
|
|
<p>{$method.name nofilter}</p>
|
|
{else}
|
|
<p>{$payment->getName() nofilter}</p>
|
|
{/if}
|
|
{else}
|
|
<p>{$deliveryType->payment}</p>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/block}
|
|
|
|
{block "sidebar-voucher"}
|
|
{if !$tpl_vars.voucher_in_first_step and $show_voucher}
|
|
{include "ordering/ordering.voucher.tpl"}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block "sidebar-pricebox"}
|
|
{include "ordering/ordering.pricebox.tpl" transport=($body.stepName != 'cart')}
|
|
|
|
{if $tpl_vars.btns_in_sidebar}
|
|
{include "ordering/ordering.btns.sidebar.tpl" showVoucher=($body.stepName == 'cart')}
|
|
{/if}
|
|
{/block}
|
|
</div>
|
|
{/if}
|