- Posts: 75
- Thank you received: 4
Email languages
- Petike1007
-
Topic Author
- Offline
Less
More
3 years 2 weeks ago #354944
by Petike1007
Email languages was created by Petike1007
-- HikaShop version -- : 4.7.4
I have a 2 language shop and as I seen from another posts the emails going out on the users language settings.
What happening when it's a guest checkout? Is it going out on the language they submitted the order?
What about the admin emails? If I use the info@myshop.com address at the email settings, but there is not a such user then it sending in english, but that's not my native language. Can I change it, or I have to make a user with this email and set the frontend languge to my language?
I have a 2 language shop and as I seen from another posts the emails going out on the users language settings.
What happening when it's a guest checkout? Is it going out on the language they submitted the order?
What about the admin emails? If I use the info@myshop.com address at the email settings, but there is not a such user then it sending in english, but that's not my native language. Can I change it, or I have to make a user with this email and set the frontend languge to my language?
Please Log in or Create an account to join the conversation.
3 years 2 weeks ago #354994
by nicolas
Replied by nicolas on topic Email languages
Hi,
If you want to test the result easily, you can edit the emails via the menu System>Emails and use the "preview" button at the top. Select the order for which you want to test and you'll directly see the result.
There is no option to change the way it works. It is technically possible with complex custom development but you'll have to hire a developer in order to change this.
Yes, when the order is created, the current language of the user is recorded with the order. That way, the system will send the emails in that language.What happening when it's a guest checkout? Is it going out on the language they submitted the order?
The order notification emails sent to the admin are sent in the same language as the ones for the user.What about the admin emails?
If you want to test the result easily, you can edit the emails via the menu System>Emails and use the "preview" button at the top. Select the order for which you want to test and you'll directly see the result.
There is no option to change the way it works. It is technically possible with complex custom development but you'll have to hire a developer in order to change this.
Please Log in or Create an account to join the conversation.
- Petike1007
-
Topic Author
- Offline
Less
More
- Posts: 75
- Thank you received: 4
3 years 1 week ago #355083
by Petike1007
Replied by Petike1007 on topic Email languages
I just want the admin order notification email to be the same language always...so I cannot do it with an email template override somehow?
I could make new language strings instead of the actual ones and use those, but that is a pain to do it...
I could make new language strings instead of the actual ones and use those, but that is a pain to do it...
Please Log in or Create an account to join the conversation.
3 years 1 week ago #355087
by nicolas
Replied by nicolas on topic Email languages
Hi,
At the beginning of the preload, you can add:
and at the end:
where en-GB is the language tag you want for the email.
However, this will only work for the email body, not the subject (because it is set after the body is generated) or the order status in the body (because it is loaded before the body is generated)
With an email override, you can do some things, but it's not perfect.so I cannot do it with an email template override somehow
At the beginning of the preload, you can add:
Code:
<?php
$lang = JFactory::getLanguage();
$currentLocale = $lang->getTag();
hikashop_loadHikashopTranslations('en-GB');
?>
Code:
hikashop_loadHikashopTranslations($currentLocale);
However, this will only work for the email body, not the subject (because it is set after the body is generated) or the order status in the body (because it is loaded before the body is generated)
The following user(s) said Thank You: Petike1007
Please Log in or Create an account to join the conversation.
- Petike1007
-
Topic Author
- Offline
Less
More
- Posts: 75
- Thank you received: 4
3 years 1 week ago #355103
by Petike1007
Replied by Petike1007 on topic Email languages
That will do...thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.218 seconds