Skip to main content

Multilingual order email

6 years 2 months ago #322925 by franchina
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20

Hello,
Why do I receive order emails in the customer's language? for these emails I would like to use my system language.

THX

Please Log in or Create an account to join the conversation.

6 years 2 months ago #322932 by nicolas
Replied by nicolas on topic Multilingual order email
Hi,

There is no setting to select the language the shop owner will receive the emails in.
So that's the main reason.
However, there is a mechanism to send the emails to the customer in their own language.

Now what you can do is edit the "order admin notification" and "payment notification" via the menu System>Emails and add such code at the top of the preload section of the email:
Code:
<?php $orderClass = hikashop_get('class.order'); $lang = new stdClass(); $lang->order_lang = 'en-GB'; $orderClass->loadLocale($lang); ?>
and that will force the language of the email to be english (or whatever language you want if you replace en-GB by another language code).

Please Log in or Create an account to join the conversation.

6 years 2 months ago #322948 by franchina
Replied by franchina on topic Multilingual order email
I'm sorry but it doesn't work, I hope you fix this problem in an update, after all, if my shop is Italian I don't understand why the system sends me notifications in the buyer's language.
Thank you

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum