{extends "index.tpl"} {block "css-entry" append} {encore_entry_link_tags entry='cart'} {/block} {block content} {change_currency currency=$body.order->currency}
{block "order-header"}

{t}Objednávka{/t}{if $body.order.order_no}: {$body.order.order_no}{/if}

{/block}
{include "block.messages.tpl"} {if $body.error != ''} {/if} {block "order-payment"} {if $body.payment && $body.payment->hasOnlinePayment() && $body.order->isActive() && !$body.order->isPaid()} {$body.payment->getOrderViewDescription() nofilter} {/if} {/block}
{t}Datum objednání{/t} {t}Stav objednávky{/t}
{$body.order.date_created|date_format:"%d.%m.%Y %H:%M"} {if $body.order.status_storno} {t}Objednávka stornována{/t} {else} {if !$body.editable} {$body.order.status_text} {else} Zpracování pozastaveno!
Čeká se na potvrzení změn {/if} {/if}

{block "address"}

{t}Kontaktní údaje{/t}

  • {$body.order.invoice_name} {$body.order.invoice_surname}
  • {$body.order.invoice_email}
  • {$body.order.invoice_phone}
{if $body.order.invoice_street || $body.order.invoice_city || $body.order.invoice_zip}

{t}Fakturační adresa{/t}

    {if $body.order.invoice_firm}
  • {$body.order.invoice_firm}
  • {else}
  • {$body.order.invoice_name} {$body.order.invoice_surname}
  • {/if}
  • {$body.order.invoice_street}
  • {if $body.order.invoice_custom_address}
  • {$body.order.invoice_custom_address}
  • {/if}
  • {$body.order.invoice_zip} {$body.order.invoice_city}
  • {if $body.order.invoice_state}
  • {$body.order.invoice_state}
  • {/if}
  • {$cfg.Order.Countries[$body.order.invoice_country]}
  • {if $body.order.invoice_ico}
  • {t}IČO{/t}: {$body.order.invoice_ico}
  • {/if} {if $body.order.invoice_dic}
  • {t}DIČ{/t}: {$body.order.invoice_dic}
  • {/if}
{/if} {if $body.order.delivery_name || $body.order.delivery_surname || $body.order.delivery_street}

{t}Dodací adresa{/t}

  • {$body.order.delivery_name} {$body.order.delivery_surname}
  • {if $body.order.delivery_firm && $body.order.delivery_firm != $body.order.delivery_name|cat:" "|cat:$body.order.delivery_surname}
  • {$body.order.delivery_firm}
  • {/if}
  • {$body.order.delivery_street}
  • {if $body.order.delivery_custom_address}
  • {$body.order.delivery_custom_address}
  • {/if}
  • {$body.order.delivery_zip} {$body.order.delivery_city}
  • {if $body.order.delivery_state}
  • {$body.order.delivery_state}
  • {/if}
  • {$cfg.Order.Countries[$body.order.delivery_country]}
  • {if $body.order.delivery_phone}
  • {$body.order.delivery_phone}
  • {/if}
{/if}

{/block} {$deliveryType = $body.order->getDeliveryType()} {if $deliveryType}

{t}Doprava a platba{/t}

{block "delivery"}
  • {$deliveryType->delivery}
  • {$delivery = $deliveryType->getDelivery()} {if $delivery}
  • {$delivery->printDeliveryInfo() nofilter}
  • {/if} {block "payment-class"} {$payment = $deliveryType->getPayment()} {if $payment}
  • {$payment->getName() nofilter}
  • {/if} {/block}
{/block}

{/if} {if $body.order.note_user}

{t}Poznámka k objednávce{/t}

{$body.order.note_user|escape:'htmlall'|nl2br nofilter}


{/if} {if $body.order.noteAdmin}

{t}Poznámka pro zákazníka{/t}

{$body.order.noteAdmin}


{/if} {block "bonus-points"}{/block} {block "wtf-products"} {block "products"}

{t}Objednané zboží{/t}

{$cf = $body.order->getSecurityCode()} {get_order_coupons order=$body.order assign='order_coupons'} {foreach $body.order.items as $product}
{if $product.id_product} {$product.descr} {else} {/if}
{block "cart-title"}
{if $product.id_product} {$product.descr} {else} {$product.descr} {/if} {* pozor, stary produkty maji .note ale ne .product *} {if $product.product and $product.note} {block "product-notes"} {$itemInfo = $body.order->getItemInfo($product)} {foreach $itemInfo as $key => $print_note}
{$print_note nofilter}
{/foreach} {/block} {/if} {if !empty($order_coupons[$product.id])}
Kód: {foreach $order_coupons[$product.id] as $coupon} {$coupon_url = path('kupshop_orderingbundle_pdfcoupon', ['id_order' => $body.order.id, 'id_coupon' => $coupon.id, 'cf' => $cf], 0)} {$coupon.code}{if !$coupon@last},{/if} {/foreach} {/if}
{/block} {block "product-pieces"}
{if $product.id_product} {$product.pieces} {if $module.PRODUCTS__UNITS} {$product.product.unit.short_name|lower} {else} {t}Ks{/t} {/if} {/if}
{/block} {block "product-price"}
{$product.total_price.value_with_vat|format_price:"ceil=no;decimal=dynamic"}
{/block}
{/foreach}
{/block} {/block} {block "discounts"} {get_order_items_discounts order=$body.order assign='itemsDiscounts'} {if $itemsDiscounts}

* {t}Aplikované slevy{/t}

{$totalDiscounts = DecimalConstants::zero()} {foreach $itemsDiscounts as $discount} {$totalDiscounts = $totalDiscounts->add($discount.totalPrice)} {/foreach}
{$discount.name} {$discount.totalPrice|format_price:"ceil=no;decimal=dynamic"}
{t}Celkem jste ušetřili{/t} {$totalDiscounts|format_price:"ceil=no;decimal=dynamic"}
{/if} {/block} {block "wtf"} {block "price"}
{if $dbcfg.shop_vat_payer}

{t}Cena bez DPH{/t}:

{$body.order.total_price_array.value_without_vat|format_price:"ceil=no;decimal=dynamic"}

{/if}

{t}Cena celkem{/t}:

{$body.order.total_price_array.value_with_vat|format_price:"ceil=no;decimal=dynamic"}

{/block} {/block} {block "history"}

{t}Historie objednávky{/t}

{foreach $body.order->getHistory() as $history} {/foreach}
{t}Datum{/t} {t}Stav{/t} {t}Poznámka{/t}
{$history.date|date_format:"%d.%m.%Y %H:%M:%S"} {$view.orderInfo->getOrderStatus($history.id_status)} {$history.comment nofilter}
{/block}
{/change_currency} {/block}