71 lines
2.6 KiB
Smarty
71 lines
2.6 KiB
Smarty
<div class="price-box">
|
|
<div data-reload="price">
|
|
{* 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>{$discount->getPriceWithVat()|format_price:"ceil=no;decimal=dynamic"}</p>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{/if}
|
|
{/foreach}
|
|
{/if}
|
|
|
|
{if $transport==1}
|
|
{block "pricebox-product-price"}
|
|
{if $body->getPurchaseState()->getCharges()}
|
|
{foreach $body->getPurchaseState()->getCharges() as $charge}
|
|
<div class="row discount">
|
|
<div class="col-xs-6">
|
|
<p>{$charge->getName()}</p>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<p>{$charge->getPrice()|format_price}</p>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block "pricebox-transport"}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<p>{t}Doprava a platba{/t}</p>
|
|
</div>
|
|
<div class="col-xs-6 {if $body.transport}text-right{/if}">
|
|
<p>
|
|
{if !$body.transport}
|
|
{if !$body.delivery_id}
|
|
{t}Vyberte dopravu{/t}
|
|
{else}
|
|
{t}Vyberte platbu{/t}
|
|
{/if}
|
|
{else}
|
|
{$delivery = $body->getDeliveryType()}
|
|
{$delivery.price.value_with_vat|format_price}
|
|
{/if}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{/if}
|
|
{block "pricebox-total-price"}
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<p class="total-price">{t}Cena celkem{/t}</p>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<h3>{$body.totalPricePay|format_price}</h3>
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
</div>
|
|
</div>
|