{* @compiler:inline-only *} {if $cfg.tpl.summary_sidebar.version == 2} {include "ordering/ordering.summary-sidebar.v2.tpl"} {else} {block 'sidebar-prepend'}{/block}
{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"}

5} data-opener="[data-summary-sidebar-products]"{/if}>{t}Souhrn objednávky{/t} {$totalCount} {t}ks{/t}

{/block} {if $isLastStep}

{t}Překontrolujte si košík a odešlete objednávku.{/t}

{/if} {block "sidebar-products"}
5}data-summary-sidebar-products data-simplebar data-simplebar-auto-hide="false"{/if}>
{if $body.products} {include "ordering/ordering.summary.products.tpl" items=$body.products|array_reverse} {else}

{t}V košíku nemáte žádné zboží.{/t}

{/if}
{/block} {/if} {block "sidebar-delivery"} {if $deliveryType}
{$delivery = $deliveryType->getDelivery()}
{if $delivery} {get_deliveries_dates cart=$body assign='deliveriesDates'} {$date = $deliveriesDates[$delivery.id].date}

{t}Doprava{/t}

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

{/if}
{$payment = $deliveryType->getPayment()}

{t}Platba{/t}

{if $payment} {$method = $payment->getSelectedMethod()} {if $method}

{$method.name nofilter}

{else}

{$payment->getName() nofilter}

{/if} {else}

{$deliveryType->payment}

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