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

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

{include "block.messages.tpl"} {if $body.error != ''} {/if} {if $body.payment && $body.payment->hasOnlinePayment() && $body.order->isActive() && !$body.order->isPaid()} {$body.payment->getOrderViewDescription() nofilter} {/if}

{t}Datum objednání{/t}: {$body.order.date_created|date_format:"%d.%m.%Y %H:%M:%S"}

{t}Aktuální stav objednávky{/t}: {if $body.order.status_storno} {t}Objednávka stornována{/t} {else} {$body.order.status_text} {/if}

{block "history"}

{t}Zobrazit historii objednávky{/t}

{/block}
{block "address"}

{t}Kontaktní údaje{/t}

  • {$body.order.invoice_name} {$body.order.invoice_surname}
  • {if $body.order.invoice_firm}
  • {$body.order.invoice_firm}
  • {/if}
  • {$body.order.invoice_email}
  • {$body.order.invoice_phone}
{if $body.order.invoice_street or $body.order.invoice_city or $body.order.invoice_zip}

 

  • {$body.order.invoice_street}
  • {$body.order.invoice_city}
  • {$body.order.invoice_zip}
  • {$cfg.Order.Countries[$body.order.invoice_country]}
{/if}

{/block}

{t}Doprava a platba{/t}

    {$deliveryType = $body.order->getDeliveryType()}
  • {$deliveryType.delivery} {if !empty($deliveryType.delivery_class->psc)} ({$deliveryType.delivery_class->psc}) {/if} - {$deliveryType.payment}

{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 "products"}

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

{foreach $body.order.items as $product}
{if $product.id_product} {$product.descr} {else} {/if}
{if $product.id_product} {$product.descr} {else} {$product.descr} {/if} {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} {$cf = $body.order->getSecurityCode()} {get_order_coupons order=$body.order assign='order_coupons'} {if !empty($order_coupons[$product.id])}
{t}Kód{/t}: {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}
{if $product.id_product} {$product.pieces} {t}ks{/t} {/if}
{$product.total_price.value_with_vat|format_price:"ceil=no;decimal=dynamic"}
{/foreach}
{/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"}

{t}Cena bez DPH{/t}:

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

{t}Cena celkem{/t}:

{$body.order.total_price_array|format_price}

{/block} {/block}
{/change_currency} {/block}