PDA

View Full Version : Language phrases above payment gateways at the checkout page



Andreas_M
October 12, 2012, 07:16 PM
Hello,


I would like to put the language phrases above the payment gateways at the checkout page.
Cant find the right file.
Can somebody help me please?

Thx

Best regards
Andreas

Vladimir
October 13, 2012, 04:50 AM
Hello,

You can try to change it the following way:

1. open file templates/your_template/tpl/add_listing.tpl

- find element by id - payment_gateways;
- for example find this code:



<li>
<img alt="" src="{$smarty.const.RL_LIBS_URL}payment/paypal/paypal.png" />
<p><input {if $smarty.post.gateway == 'paypal' || !$smarty.post.gateway}checked="checked"{/if} type="radio" name="gateway" value="paypal" /></p>
</li>


and change it to:



<li>
<div class="value">{$lang.paypal}</div>
<img alt="" src="{$smarty.const.RL_LIBS_URL}payment/paypal/paypal.png" />
<p><input {if $smarty.post.gateway == 'paypal' || !$smarty.post.gateway}checked="checked"{/if} type="radio" name="gateway" value="paypal" /></p>
</li>


(you should add the lang key paypal in your Admin panel > Languages)

2. open file templates/your_template/tpl/upgrade_listing.tpl

- also find element by id - payment_gateways and add a phrase to each item;

3. If your payment gateway is plugin:

- open file plugins/your_payment/[prefix]payment_block.tpl;
- add your phrase before <img ... /> tag.

Andreas_M
October 14, 2012, 11:02 AM
Hello Vladimir,


thanks for your help, it worked very well.