25 lines
1.2 KiB
Smarty
25 lines
1.2 KiB
Smarty
{if $freeDelivery or $body.freeShipping}
|
|
<div data-reload="free-shipping">
|
|
<p class="cart-free-shipping">
|
|
{if $body.freeShipping} {* produkt s kampani doprava zdarma *}
|
|
<strong>{t}Dopravu máte zdarma{/t}</strong>
|
|
{else} {* nastaveni dopravy zdarma u dopravy nad xy Kč*}
|
|
{$totalPriceForDelivery = $body->getTotalPriceForDelivery()->getPriceWithVat()}
|
|
{if $freeDelivery->lessThan($totalPriceForDelivery)}
|
|
<strong>{t}Dopravu máte zdarma{/t}</strong>
|
|
{else}
|
|
<strong>
|
|
{t escape=false castka=$freeDelivery->sub($totalPriceForDelivery)|format_price}K dopravě zdarma zbývá nakoupit
|
|
<span class="nowrap">za {castka}</span>{/t}
|
|
</strong>
|
|
{/if}
|
|
{* nezobrazovat pokud je doprava zdarma 0 (viz Kerbo) *}
|
|
{if $freeDelivery->isPositive()}
|
|
{t escape=false castka=$freeDelivery|format_price}Doprava zdarma při objednávce
|
|
<span class="nowrap">nad {castka}</span>{/t}
|
|
{/if}
|
|
{/if}
|
|
</p>
|
|
</div>
|
|
{/if}
|