{$closed = $body.payment_id|strpos:{$payment.id|cat:'-'} !== 0} {foreach $object->getAvailableMethods() as $name => $method} {$method_id = "{$id}-{$name}"}
{block "gopay-items-hidden"} {if $method@index == ($tpl_vars.online_payment_visible_items|default:2 - 1) and $closed and !$method@last}