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

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

Newbie

Posts

Joined
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.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

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

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

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.

Crystal Light Centrum Taiwan
“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.


Active Member

Posts

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

Users browsing this forum: No registered users and 12 guests