Jump to content

Bank transfer not translated from admin made orders


M.N

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?

Link to comment
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.

Link to comment
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?

Link to comment
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?

Link to comment
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
×
×
  • Create New...