37 lines
1.6 KiB
Smarty
37 lines
1.6 KiB
Smarty
|
|
{$closed = $body.payment_id|strpos:"`$payment.id`-" !== 0}
|
|
|
|
{if !isset($tpl_vars.online_payment_visible_items)}
|
|
{$tpl_vars.online_payment_visible_items = 2}
|
|
{/if}
|
|
|
|
{foreach $object->getAvailableMethods($body->getTotalPriceForDelivery()->getPriceWithVat(false)) as $method}
|
|
{$method_id = "`$id`-`$method.type`"}
|
|
<div class="cart-box-row payment-item payment-item-{$method.name|lower|strip_accent}
|
|
{if $method_hidden}hidden{/if}" {if $method_hidden}style="display: none;"{/if}>
|
|
<label for="pay{$method.type}" class="delivery-content custom-radio custom-control">
|
|
<input type="radio" name="payment_id" value="{$method_id}" id="pay{$method.type}"
|
|
class="custom-control-input" {$body.payment_id|checked:$method_id nofilter}>
|
|
<span class="custom-control-indicator"></span>
|
|
<span class="img{if $method.images|count > 1} more-img{/if}">
|
|
{foreach $method.images as $image}
|
|
<img src="{$image}" title="{$method.name}" alt="{$method.name}">
|
|
{/foreach}
|
|
</span>
|
|
<span class="name">{block "method-name"}{$method.name}{/block}</span>
|
|
<span class="price">
|
|
<span data-reload="payment_price_{$method_id}">
|
|
{block "payment-price"}
|
|
{$paymentPrice = $view->getPaymentPrice($id)}
|
|
{if $paymentPrice && $paymentPrice.value_with_vat->isPositive()}
|
|
{$paymentPrice.value_with_vat|format_price}
|
|
{else}
|
|
{t}zdarma{/t}
|
|
{/if}
|
|
{/block}
|
|
</span>
|
|
</span>
|
|
</label>
|
|
</div>
|
|
{/foreach}
|