Page 1 of 1
Invoice in another language
Posted: Thu Feb 21, 2019 5:59 am
by hkeung
Hi,
I am developing a Website will multi language which is all done and good. I need to print the invoice in one specific language(english) no matter the client in which language. Please advise.
Vincent
Re: Invoice in another language
Posted: Thu Feb 21, 2019 6:15 am
by straightlight
While the OC version has not been posted, the easiest way to accomplish this would be by using an extension or by using the $language = new Language method already implemented. One place to look would be in your catalog/controller/mail/order.php file.
Re: Invoice in another language
Posted: Wed Mar 06, 2019 4:21 pm
by letxobnav
in version 3.0.2.0 you will find:
Code: Select all
// Load the language for any mails that might be required to be sent out
$language = new Language($order_info['language_code']);
$language->load($order_info['language_code']);
$language->load('mail/order_add');
it takes the language code from the order info, overwrite that with the language code for english.