{* @compiler:inline-only *} {block 'sidebar-prepend'}{/block}
{$totalCount = 0} {foreach $body.products as $item} {$totalCount = $totalCount + $item.pieces} {/foreach} {block "sidebar-title"}

5} data-opener="[data-summary-sidebar-products]"{/if}>{t}Shrnutí{/t} {if $body.stepName == 'cart'} {t}Vložit slevový kód{/t} {else} {$totalCount} {t}ks{/t} {/if}

{if $body.stepName == 'cart'} {include "ordering/ordering.voucher.tpl" hidden=true} {/if} {/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'} {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}

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

{$delivery.price.value_with_vat|format_price}

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

{if $payment} {$method = $payment->getSelectedMethod()} {if $method} {$method.name nofilter} {else} {$payment->getName() nofilter} {/if} {else} {$deliveryType->payment} {/if}

{$paymentPrice = $view->getPaymentPrice($payment.id)} {if $paymentPrice != null} {if $paymentPrice.value_with_vat->isPositive()} {$paymentPrice.value_with_vat|format_price} {else} {t}zdarma{/t} {/if} {/if}

{/if} {/block}
{block "sidebar-pricebox"} {include "ordering/ordering.pricebox.tpl" transport=($body.stepName != 'cart')} {if $isLastStep} {ifmodule AGE_VERIFY} {if $dbcfg.age_verify.adulto.enabled}
{/if} {/ifmodule}

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

{/if} {if $tpl_vars.btns_in_sidebar} {include "ordering/ordering.btns.sidebar.tpl" showVoucher=false} {/if} {/block}
{block "js-dynamic-load" append} {ifmodule AGE_VERIFY} {if $dbcfg.age_verify.adulto.enabled} {/if} {/ifmodule} {/block}