Jump to content

Bank transfer not translated from admin made orders


M.N
 Share

Recommended Posts

Bank transfer from module ps_wiretransfer is translated when customer makes order, but is not translated when the order is made from admin console (as in example if order is sent via email). 

Not translated in: Order confirmation email, Pdf invoice, Customer order history and can be that in more places.

Can anybody confirm this?

Share this post


Link to post
Share on other sites

Hello,
I think that most probably the emails sent when you create the order from the back office are in the language which is set for your back office account. Most probably this is different than the language on the front end when the customer creates the order.
Please try to set the back office account to another language and create a test order from the back office and see if the emails will be in the newly set language. 
I hope that I could help.
Have a nice day, Leo.

Share this post


Link to post
Share on other sites

Thank you for replay. Yes this is exactly the case I mean, everything else gets translated, but not the Bank transfer (method). This is kept in Admin language. Can you confirm it?

Share this post


Link to post
Share on other sites

Problem seems to be in file: classes/PaymentModule.php in lines 991-992. Currently there is:

$order->payment = $payment_method;
        if (isset($name)) {
            $order->module = $name;

How to correct these lines for translating the payment method name into customer language?

Share this post


Link to post
Share on other sites

  • 1 month later...

Not very active forum...

To specify the problem "payment_mehtod"  is translated in FO to customer chosen language and in BO to admin language. So it is translated, but in latter case language is chosen not correctly. As it seems from BO you choose cart language first. So, most probably there should be first referred to cart and then to cart language and then this omitted for the payment_method translated value selection. How to do it, just 

->id_lang

added does not help. What is the correct way to force cart/customer language for the payment method translation?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More