Post by hkeung » Thu Feb 21, 2019 5:59 am

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.




Sat Mar 10, 2018 8:06 pm

Post by straightlight » Thu Feb 21, 2019 6:15 am

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

Straightlight Administrator / Quality Assurance Analyst / Programmer / Opencart Tester

Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by letxobnav » Wed Mar 06, 2019 4:21 pm

in version 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']);
it takes the language code from the order info, overwrite that with the language code for english.

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.

User avatar
Expert Member


Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 2 guests