Jump to content

Payment Method Translation In Invoice Pdf


Recommended Posts

I'm using Japanese as my default language and invoice PDFs are translated in Japanese.

 

But I have a problem. in invoice PDF, there is a part which displays payment method. but the part is not translated to Japanese. instead it displays such as 'Paypal' or 'Bank Wire' and I want to make them displayed in Japanese.

 

I checked the source code of /pdf/invoice-new.tpl and the part was like this:

 

<td style="width: 50%">{$payment->payment_method}</td>

 

I don't know how to fix this part and translate it into my default language.

 

Thanks in advance.

  • Like 1
Link to comment
Share on other sites

  • 11 months later...

 

Go to Localization  > Translations
 
In the Modify Translation Drop down box select PDF translations. Choose the language.
 
Using your Browser Page Search function to find item you wish to change.

 

The paymend method translation is not there. We wont to change "PayPal", " Bank Wire".... Payment method is in English :/

Link to comment
Share on other sites

First, PayPal is a "brand". You don't change or translate PayPal. In other words if you are on Mars and speaking to a Martian ... you are both saying PayPal. :)

 

That said, to change PayPal it does depend on which PayPal module is in use. You might look in your PayPal Module folder and see if it contains a file called translations.xml , if so translations are arranged in that file by country ISO code.

 

For Bank Wire, here is a thread that may help,

 

http://www.prestashop.com/forums/topic/243561-solved-translate-bankwire-text-in-front-office/

 

Let me know if any of this helps you.

Edited by Bill Dalton (see edit history)
Link to comment
Share on other sites

  • 6 months later...

Interesting. Payment methods are really brands. You can't translate them.

 

I would use an {if} condition. Something like:

{if  $iso_code == 'ja'}
    {if $payment->payment_method == 'bankwire'}
        Bankwire in Japanese
    {elseif $payment->payment_method == 'paypal'}
        PayPal in Japanese
    {/if}
{else}
    {$payment->payment_method}
{/if}

Variables must be changes. It is just an idea.

Link to comment
Share on other sites

×
×
  • Create New...