Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 2.30 KB | None | 0 0
  1. {$sPayments|@print_r}
  2.     {block name='frontend_checkout_payment_content'}
  3.         <div class="panel--body is--wide block-group">
  4.             {foreach from=$sPayments item=payment_mean key=id}
  5.                 <div class="payment--method block{if $payment_mean@last} method_last{else} method{/if}">
  6.  
  7.                     {* Radio Button *}
  8.                     {block name='frontend_checkout_payment_fieldset_input_radio'}
  9.                         <div class="method--input">
  10.                             <input type="radio" name="payment" class="radio auto_submit" value="{$payment_mean.id}" id="payment_mean{$payment_mean.id}"{if $payment_mean.id eq $sFormData.payment or (!$sFormData && !$smarty.foreach.register_payment_mean.index)} checked="checked"{/if} />
  11.                         </div>
  12.                     {/block}
  13.  
  14.                     {* Method Name *}
  15.                     {block name='frontend_checkout_payment_fieldset_input_label'}
  16.                         <div class="method--label is--first">
  17.                             <label class="method--name is--strong" for="payment_mean{$payment_mean.id}">{$payment_mean.description}</label>
  18.                         </div>
  19.                     {/block}
  20.  
  21.                     {* Method Description *}
  22.                     {block name='frontend_checkout_payment_fieldset_description'}
  23.                         <div class="method--description is--last">
  24.                             {include file="string:{$payment_mean.additionaldescription}"}
  25.                         </div>
  26.                     {/block}
  27.  
  28.                     {* Method Logo *}
  29.                     {block name='frontend_checkout_payment_fieldset_template'}
  30.                         <div class="payment--method-logo payment_logo_{$payment_mean.name}"></div>
  31.                         {if "frontend/plugins/payment/`$payment_mean.template`"|template_exists}
  32.                             <div class="method--bankdata{if $payment_mean.id != $form_data.payment} is--hidden{/if}">
  33.                                 {include file="frontend/plugins/payment/`$payment_mean.template`" form_data=$sFormData error_flags=$sErrorFlag payment_means=$sPayments}
  34.                             </div>
  35.                         {/if}
  36.                     {/block}
  37.                 </div>
  38.             {/foreach}
  39.         </div>
  40.     {/block}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement