{if $module.ORDER_DISCOUNT && ($body->getPurchaseState()->getDiscounts() || $body->getPurchaseState()->getCharges())} {$cartDiscountActive = true} {/if} {$totalPrice = $body->getPurchaseState()->getTotalPrice()} {$productsTotalPrice = $body->getPurchaseState()->getProductsTotalPrice()}
{block "products-price"} {if $transport==1 or $cartDiscountActive}

{t}Cena zboží{/t}

{$discountsProductsTotalPrice = $body->getPurchaseState()->discountsProductsTotalPrice} {* discountsProducts - napr. darky, jsou vetsinou zdarma, ale mohou byt i za nejakou cenu *} {* cena darku neni zapoctena v totalPrice *} {$productsTotalPriceIncrement = 0} {if $discountsProductsTotalPrice} {if $noVat} {$productsTotalPriceIncrement = $discountsProductsTotalPrice->getPriceWithoutVat()} {else} {$productsTotalPriceIncrement = $discountsProductsTotalPrice->getPriceWithVat()} {/if} {/if} {if $noVat} {$productsTotalPrice->getPriceWithoutVat()->add($productsTotalPriceIncrement)|format_price:"ceil=no;decimal=dynamic"} {else} {$productsTotalPrice->getPriceWithVat()->add($productsTotalPriceIncrement)|format_price:"ceil=no;decimal=dynamic"} {/if}

{/if} {/block} {block "pricebox-discounts"} {* Render order discounts (new) *} {if $body->getPurchaseState()->getDiscounts()|count && findModule('order_discount')} {foreach $body->getPurchaseState()->getDiscounts() as $discount} {if is_a($discount, 'KupShop\OrderingBundle\Entity\Purchase\DiscountPurchaseItem')} {block "pricebox-order-discount"}

{$discount->getName()}

{if $noVat}{$discount->getPriceWithoutVat()|format_price:"ceil=no;decimal=dynamic"} {else}{$discount->getPriceWithVat()|format_price:"ceil=no;decimal=dynamic"}{/if}

{/block} {/if} {/foreach} {/if} {/block} {block "pricebox-charges"} {if $body->getPurchaseState()->getCharges()} {foreach $body->getPurchaseState()->getCharges() as $charge} {if is_a($charge, 'KupShop\OrderingBundle\Entity\Purchase\ChargePurchaseItem')}

{$charge->getName()}

{$charge->getPrice()|format_price:"ceil=no;decimal=dynamic"}

{/if} {/foreach} {/if} {/block} {block "pricebox-transport"} {if $transport==1}
{if !$body.transport}

{if !$body.delivery_id}{t}Vyberte dopravu{/t}{else}{t}Vyberte platbu{/t}{/if}

{else}

{t}Doprava a platba{/t}

{$delivery = $body->getDeliveryType()} {if $noVat}{$delivery.price.value_without_vat|format_price:"ceil=no;decimal=dynamic"}{else}{$delivery.price.value_with_vat|format_price:"ceil=no;decimal=dynamic"}{/if}

{/if}
{/if} {/block} {if ($body->getPurchaseState()->getCustomData('rounding_balance') && $dbcfg.invoice_rounding_balance == 'Y')}

{t}Zaokrouhlení{/t}

{$body->getPurchaseState()->getCustomData('rounding_balance')|format_price:"ceil=no;decimal=dynamic"}

{/if} {block "pricebox-cartsaving"} {if $tpl_vars.pricebox_cartsaving} {get_cart_savings assign='cartSavings'} {if $cartSavings->isPositive()}

{t}Ušetříte{/t}

{$cartSavings|format_price:"ceil=no;decimal=dynamic"}

{/if} {/if} {/block} {block "pricebox-without-vat"} {if $dbcfg.shop_vat_payer == "Y" or $isB2BUser}

{t}Celková částka bez DPH{/t}

{$totalPrice->getPriceWithoutVat()|format_price:"ceil=no;decimal=dynamic"}

{/if} {/block} {block "pricebox-total"}

{if $dbcfg.shop_vat_payer == "Y"}{t}Celková částka s DPH{/t}{else}{t}Celková částka{/t}{/if}

{$totalPrice->getPriceWithVat()|format_price:"ceil=no;decimal=dynamic"}

{/block}