98 lines
4.1 KiB
Smarty
98 lines
4.1 KiB
Smarty
<div class="price-box">
|
|
<div data-reload="price">
|
|
{block "cart-pricebox"}
|
|
{if $module.ORDER_DISCOUNT && ($body->getPurchaseState()->getDiscounts() || $body->getPurchaseState()->getCharges())}
|
|
{$cartDiscountActive = true}
|
|
{/if}
|
|
|
|
{block "pricebox-product-price"}
|
|
{if $transport==1 or $cartDiscountActive}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<p>{t}Cena zboží{/t}</p>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<p>{if $noVat}{$body.totalPriceNoVat|format_price}{else}{$body.totalPriceWithVat|format_price}{/if}</p>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/block}
|
|
|
|
{* 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"}
|
|
<div class="row discount">
|
|
<div class="col-xs-7">
|
|
<p>{$discount->getName()}</p>
|
|
</div>
|
|
<div class="col-xs-5 text-right">
|
|
<p>{if $noVat}{$discount->getPriceWithoutVat()|format_price:"ceil=no;decimal=dynamic"}
|
|
{else}{$discount->getPriceWithVat()|format_price:"ceil=no;decimal=dynamic"}{/if}</p>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{/if}
|
|
{/foreach}
|
|
{/if}
|
|
|
|
{block "pricebox-charges"}
|
|
{if $body->getPurchaseState()->getCharges()}
|
|
{foreach $body->getPurchaseState()->getCharges() as $charge}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<p>{$charge->getName()}</p>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<p>{if $noVat}{$charge->getPrice()->getPriceWithoutVat()|format_price:"ceil=no;decimal=dynamic"}
|
|
{else}{$charge->getPrice()|format_price:"ceil=no;decimal=dynamic"}{/if}</p>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
{/if}
|
|
{/block}
|
|
|
|
{if $transport==1}
|
|
{block "pricebox-transport"}
|
|
{if !$body.transport}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<p>{if !$body.delivery_id}
|
|
{t}Vyberte dopravu{/t}
|
|
{else}
|
|
{t}Vyberte platbu{/t}
|
|
{/if}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{else}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<p>{t}Doprava a platba{/t}</p>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<p>
|
|
{$delivery = $body->getDeliveryType()}
|
|
{if $noVat}{$delivery.price.value_without_vat|format_price}{else}{$delivery.price.value_with_vat|format_price}{/if}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/block}
|
|
{/if}
|
|
|
|
{block "pricebox-total-price"}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<p class="total-price">{if $dbcfg.shop_vat_payer == "Y"}{if $noVat}{t}Celkem bez DPH{/t}{else}{t}Celkem s DPH{/t}{/if}{else}{*cena*}{t}Celkem{/t}{/if}</p>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<h3>{if $noVat}{$body.totalPricePayNoVat|format_price}{else}{$body.totalPricePay|format_price}{/if}</h3>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{/block}
|
|
</div>
|
|
</div>
|