Multilingual order email

  • Posts: 15
  • Thank you received: 1
3 years 8 months ago #322925

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

  • Posts: 81478
  • Thank you received: 13060
  • MODERATOR
3 years 8 months ago #322932

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:

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

  • Posts: 15
  • Thank you received: 1
3 years 8 months ago #322948

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.050 seconds
Powered by Kunena Forum