Files
kupshop/web/common/templates/payment.PayU.cart.tpl
2025-08-02 16:30:27 +02:00

47 lines
1.5 KiB
Smarty

<h3>{$payment.name}</h3>
{$closed = $body.payment_id|strpos:{$payment.id|cat:'-'} !== 0}
<div class="payu-method">
{foreach $object->getAvailableMethods() as $name => $method}
{if $method@index == 2 && $closed}
<a href="" class="payu-more" id="payu-more">Více možností <span class="glyphicon glyphicon-triangle-bottom"></span></a>
{/if}
<div class="checkbox instore payment-item {$name} {if $method@index > 1 && $closed}packed{/if}" data-cart="item">
<span>
<img src="{$method.img}" title="{$method.name}">
</span>
{$method_id = "{$id}-{$name}"}
<input type="radio" name="payment_id" value="{$method_id}" class="check" id="pay{$method_id}" {$body.payment_id|checked:$method_id nofilter} />
<label for="pay{$method_id}">
{$method.name}
</label>
<strong>
{if $payment.price.value_with_vat > 0}
{$payment.price.value_with_vat|format_price}
{else}
zdarma
{/if}
</strong>
</div>
{if $method@index > 1 && $closed}
<div class="instore payment-item-small {$name}" data-cart="item">
<img src="{$method.img}" title="{$method.name}">
</div>
{/if}
{/foreach}
</div>
<script>
$('#payu-more').on('click', function(){
$(this).hide();
$('.payment-item-small').hide();
$('.payment-item.packed').fadeIn();
return false;
});
</script>