- Posts: 88
- Thank you received: 20
Order status email not translated - order creation email is
8 years 10 months ago #283086
by dyvel
Order status email not translated - order creation email is was created by dyvel
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.8.2
Hi
First off, I didn't see anything in the changelog addressing this issue. The problem is with translation of the order status notification email. It keeps using the default English language of the site, even though Danish is selected when ordering, and order_lang is registered as da-DK in the database for the orders.
The order creation and order status notification emails are almost identical and mostly use the same tags, only order creation email is translated.
I find that pretty strange? What could cause this issue? All orders are done as guest checkout, so it's not an issue with the user, and that also wouldn't explain why only one email is translated and the other is not.
Any idea as to what the cause could be?
Thanks
-- Joomla version -- : 3.8.2
Hi
First off, I didn't see anything in the changelog addressing this issue. The problem is with translation of the order status notification email. It keeps using the default English language of the site, even though Danish is selected when ordering, and order_lang is registered as da-DK in the database for the orders.
The order creation and order status notification emails are almost identical and mostly use the same tags, only order creation email is translated.
I find that pretty strange? What could cause this issue? All orders are done as guest checkout, so it's not an issue with the user, and that also wouldn't explain why only one email is translated and the other is not.
Any idea as to what the cause could be?
Thanks
Please Log in or Create an account to join the conversation.
8 years 10 months ago #283091
by nicolas
Replied by nicolas on topic Order status email not translated - order creation email is
Hi,
That's something we've fixed in HikaShop 3.2.0. It is noted in our change log as:
So I would recommend updating to the latest version.
That's something we've fixed in HikaShop 3.2.0. It is noted in our change log as:
www.hikashop.com/support/documentation/5...ashop-changelog.htmlIt was still possible in some cases for the language of the email notifications to not be in the correct language.
So I would recommend updating to the latest version.
Please Log in or Create an account to join the conversation.
8 years 10 months ago #283499
by dyvel
Replied by dyvel on topic Order status email not translated - order creation email is
I have updated to 3.2.1 but still the issue remain. Do I need to delete and recreate my email overrides?
Please Log in or Create an account to join the conversation.
8 years 10 months ago #283500
by nicolas
Replied by nicolas on topic Order status email not translated - order creation email is
Hi,
No, the fix that was made was in the administrator/components/com_hikashop/classes/order.php file which you can't override through the interface.
You can try but I don't think it will make a difference.
If that doesn't help, please provide the necessary backend access and instructions to reproduce the issue as well as a FTP access via our contact form so that we can have a deeper look into it:
www.hikashop.com/support/contact-us.html
No, the fix that was made was in the administrator/components/com_hikashop/classes/order.php file which you can't override through the interface.
You can try but I don't think it will make a difference.
If that doesn't help, please provide the necessary backend access and instructions to reproduce the issue as well as a FTP access via our contact form so that we can have a deeper look into it:
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
8 years 10 months ago - 8 years 10 months ago #283569
by dyvel
Replied by dyvel on topic Order status email not translated - order creation email is
I discovered something interesting, that makes me believe there's still a small bug.
IF order notification is sent automatically when an order changes status to confirmed, as it does after a payment is made, THEN the email is still in English.
BUT, if I go to orders in backend, and change status on an order, and notify the customer, THEN the email is translated correctly.
So it seems the translation on order status notification only works, when email is triggered from a backend action.
Can you confirm this behaviour at your end?
Thanks
IF order notification is sent automatically when an order changes status to confirmed, as it does after a payment is made, THEN the email is still in English.
BUT, if I go to orders in backend, and change status on an order, and notify the customer, THEN the email is translated correctly.
So it seems the translation on order status notification only works, when email is triggered from a backend action.
Can you confirm this behaviour at your end?
Thanks
Last edit: 8 years 10 months ago by dyvel.
Please Log in or Create an account to join the conversation.
8 years 10 months ago #283577
by nicolas
Replied by nicolas on topic Order status email not translated - order creation email is
Hi,
No, I can't confirm. The emails are in the correct language, regardless from where they are sent.
On top of that, the payment plugins we developed usually have a lang parameter in the notification URL given to the payment gateway, so that when the payment notification is done, the processing is done with the correct language and no language switching is necessary.
Are you maybe using a 3rd party payment plugin ?
No, I can't confirm. The emails are in the correct language, regardless from where they are sent.
On top of that, the payment plugins we developed usually have a lang parameter in the notification URL given to the payment gateway, so that when the payment notification is done, the processing is done with the correct language and no language switching is necessary.
Are you maybe using a 3rd party payment plugin ?
Please Log in or Create an account to join the conversation.
8 years 10 months ago - 8 years 10 months ago #283658
by dyvel
Replied by dyvel on topic Order status email not translated - order creation email is
We are using QuickPay payment plugin
quickpay.net/integrations/hikashop
So you believe it's to blame?
EDIT: Looking at the payment plugin, it seems the correct language parameter is sent when looking at the notify URL:
BUT, when looking at the callback from the payment provider, I see this in the URL:
Is lang=da correct? In the database, order_lang is da-DK
So you believe it's to blame?
EDIT: Looking at the payment plugin, it seems the correct language parameter is sent when looking at the notify URL:
Code:
$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment='.$this->name.'&tmpl=component&lang='.$this->locale . $this->url_itemid;
BUT, when looking at the callback from the payment provider, I see this in the URL:
Code:
index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=quickpay&tmpl=component&lang=da&Itemid=751
Last edit: 8 years 10 months ago by dyvel.
Please Log in or Create an account to join the conversation.
8 years 10 months ago #283779
by nicolas
Replied by nicolas on topic Order status email not translated - order creation email is
Hi,
That looks correct so it doesn't seem to come from that.
I've also looked at the code of the payment plugin and I don't see something that would lead to that issue.
I guess we would need a backend access and a FTP access in order to check on the issue directly on your website (or a copy of it).
Could you provide that along with a link to this thread via our contact form:
www.hikashop.com/support/contact-us.html
That looks correct so it doesn't seem to come from that.
I've also looked at the code of the payment plugin and I don't see something that would lead to that issue.
I guess we would need a backend access and a FTP access in order to check on the issue directly on your website (or a copy of it).
Could you provide that along with a link to this thread via our contact form:
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.225 seconds