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
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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
in version 3.0.2.0 you will find:
it takes the language code from the order info, overwrite that with the language code for english.
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');
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Who is online
Users browsing this forum: No registered users and 349 guests