[Skip to main content](#vessel-content)

#   Order confirmation email language stays in default

##

- **[fengel](/forum/user/37465-fengel "View fengel's Profile")**
- [![fengel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37465.jpg)](/forum/user/37465-fengel "View fengel's Profile") Topic Author
- [ Offline](/forum/user/37465-fengel)

Less More

- Posts: 27
- Thank you received: 4
-
-

11 years 3 months ago [\#210879](#210879) by [fengel](/forum/user/37465-fengel "View fengel's Profile")  *[Order confirmation email language stays in default](/forum/29-payment-methods/878624-order-confirmation-email-language-stays-in-default#210879 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  The languages in use are Danish and English, with English being default.  1) User logs in and has Danish language set 2) User completes order and enters the ePay gateway (overlay) 3) User receives email for Order Created in Danish. This is correct 4) User completes ePay payment (in Danish) and gets sent to Thank You page, also in Danish 5) Email for Order Confirmed is received. However, it's in English 6) Another email for ePay Payment Confirmed is received in English  According to , it could be a problem with the notification URL. However, I've checked the ePay file and it matches the one in PayPal. Not sure what else could be the problem.  Is the ePay plugin maintained by the Hikashop team or ePay?")* was created by *[fengel](/forum/user/37465-fengel "View fengel's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Firefox 38.0.5

The languages in use are Danish and English, with English being default.

1) User logs in and has Danish language set
2) User completes order and enters the ePay gateway (overlay)
3) User receives email for Order Created in Danish. This is correct
4) User completes ePay payment (in Danish) and gets sent to Thank You page, also in Danish
5) Email for Order Confirmed is received. However, it's in English
6) Another email for ePay Payment Confirmed is received in English

According to [ this thread](http://www.hikashop.com/forum/orders-management/870509-order-confirmation-email-not-in-dutch.html), it could be a problem with the notification URL. However, I've checked the ePay file and it matches the one in PayPal. Not sure what else could be the problem.

Is the ePay plugin maintained by the Hikashop team or ePay?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzg2MjQtb3JkZXItY29uZmlybWF0aW9uLWVtYWlsLWxhbmd1YWdlLXN0YXlzLWluLWRlZmF1bHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#210915](#210915) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Order confirmation email language stays in default](/forum/29-payment-methods/878624-order-confirmation-email-language-stays-in-default#210915 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  The languages in use are Danish and English, with English being default.  1) User logs in and has Danish language set 2) User completes order and enters the ePay gateway (overlay) 3) User receives email for Order Created in Danish. This is correct 4) User completes ePay payment (in Danish) and gets sent to Thank You page, also in Danish 5) Email for Order Confirmed is received. However, it's in English 6) Another email for ePay Payment Confirmed is received in English  According to , it could be a problem with the notification URL. However, I've checked the ePay file and it matches the one in PayPal. Not sure what else could be the problem.  Is the ePay plugin maintained by the Hikashop team or ePay?")*

Hi,

The ePay payment plugin is not a plugin developed or managed by the HikaShop team but by [ www.hikashop.dk/](http://www.hikashop.dk/)
You're right with the other forum thread, it is the source of your problem.
So I suggest you to contact the plugin developer in order to fix the language parameter in the notification url.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [fengel](/forum/user/37465-fengel "View fengel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzg2MjQtb3JkZXItY29uZmlybWF0aW9uLWVtYWlsLWxhbmd1YWdlLXN0YXlzLWluLWRlZmF1bHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fengel](/forum/user/37465-fengel "View fengel's Profile")**
- [![fengel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37465.jpg)](/forum/user/37465-fengel "View fengel's Profile") Topic Author
- [ Offline](/forum/user/37465-fengel)

Less More

- Posts: 27
- Thank you received: 4
-
-

10 years 9 months ago [\#229683](#229683) by [fengel](/forum/user/37465-fengel "View fengel's Profile")  Replied by *[fengel](/forum/user/37465-fengel "View fengel's Profile")* on topic *[Order confirmation email language stays in default](/forum/29-payment-methods/878624-order-confirmation-email-language-stays-in-default#229683 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  The languages in use are Danish and English, with English being default.  1) User logs in and has Danish language set 2) User completes order and enters the ePay gateway (overlay) 3) User receives email for Order Created in Danish. This is correct 4) User completes ePay payment (in Danish) and gets sent to Thank You page, also in Danish 5) Email for Order Confirmed is received. However, it's in English 6) Another email for ePay Payment Confirmed is received in English  According to , it could be a problem with the notification URL. However, I've checked the ePay file and it matches the one in PayPal. Not sure what else could be the problem.  Is the ePay plugin maintained by the Hikashop team or ePay?")*

Hikashop v. 2.6.1 Business
J! v. 3.4.8

Hi, sorry to revive this thread but I'm still having trouble with this problem. ePay is not providing tech support for the module anymore, so I need to find a fix myself.

According to the referenced thread above, the notify URL is the culprit. I have tried to find out if the "lang" parameter is set, and it is set.

- I have done a var\_dump for JInput inside the function onPaymentNotification, and I get everything back correctly. (ex. 'da', 'en')
- I have also checked if the current request URL matches the notify URL, and it does.
- I've tried to see if the controller is ever called, checkoutController-&gt;notify(). It doesn't seem to be called :huh:
- I've tried to hard code a language setting within both the checkout controller and the ePay plugin, but to no effect.

I'm at a lost of what could be the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzg2MjQtb3JkZXItY29uZmlybWF0aW9uLWVtYWlsLWxhbmd1YWdlLXN0YXlzLWluLWRlZmF1bHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 9 months ago [\#229741](#229741) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order confirmation email language stays in default](/forum/29-payment-methods/878624-order-confirmation-email-language-stays-in-default#229741 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  The languages in use are Danish and English, with English being default.  1) User logs in and has Danish language set 2) User completes order and enters the ePay gateway (overlay) 3) User receives email for Order Created in Danish. This is correct 4) User completes ePay payment (in Danish) and gets sent to Thank You page, also in Danish 5) Email for Order Confirmed is received. However, it's in English 6) Another email for ePay Payment Confirmed is received in English  According to , it could be a problem with the notification URL. However, I've checked the ePay file and it matches the one in PayPal. Not sure what else could be the problem.  Is the ePay plugin maintained by the Hikashop team or ePay?")*

Hi,

Try to add such code after the order is loaded by the payment plugin in the onPaymentNotification function: Code:

$orderClass = hikashop_get('class.order'); $orderClass-&gt;loadLocale($order);

That will force the reloading of the language based on the language of the customer of the order.

The following user(s) said Thank You: [fengel](/forum/user/37465-fengel "View fengel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzg2MjQtb3JkZXItY29uZmlybWF0aW9uLWVtYWlsLWxhbmd1YWdlLXN0YXlzLWluLWRlZmF1bHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fengel](/forum/user/37465-fengel "View fengel's Profile")**
- [![fengel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37465.jpg)](/forum/user/37465-fengel "View fengel's Profile") Topic Author
- [ Offline](/forum/user/37465-fengel)

Less More

- Posts: 27
- Thank you received: 4
-
-

10 years 9 months ago [\#229771](#229771) by [fengel](/forum/user/37465-fengel "View fengel's Profile")  Replied by *[fengel](/forum/user/37465-fengel "View fengel's Profile")* on topic *[Order confirmation email language stays in default](/forum/29-payment-methods/878624-order-confirmation-email-language-stays-in-default#229771 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  The languages in use are Danish and English, with English being default.  1) User logs in and has Danish language set 2) User completes order and enters the ePay gateway (overlay) 3) User receives email for Order Created in Danish. This is correct 4) User completes ePay payment (in Danish) and gets sent to Thank You page, also in Danish 5) Email for Order Confirmed is received. However, it's in English 6) Another email for ePay Payment Confirmed is received in English  According to , it could be a problem with the notification URL. However, I've checked the ePay file and it matches the one in PayPal. Not sure what else could be the problem.  Is the ePay plugin maintained by the Hikashop team or ePay?")*

I've tried adding that but it had no effect.

I got it working but it required some extra steps:
Code:

// Have to set language, so that the order status (Confirmed) gets translated // But we only have the locale from the GET array to work with $lang = JFactory::getLanguage(); $langarr = $lang-&gt;getKnownLanguages(); $newarr = array_filter(array_keys($langarr), function($tag){ return (JRequest::getVar('lang', 'en') == substr($tag, 0, 2)); }); $lang-&gt;setLanguage(array_shift($newarr)); // Load classes $userClass = hikashop_get('class.user'); $orderClass = hikashop_get('class.order'); // Load order $dbOrder = $this-&gt;getOrder($order_id); // Force reloading of language based on customer's language // However, we're missing the order's customer info. We have to load that first // I've tried use loadFullOrder, but it kept giving NULL $dbOrder-&gt;customer = $userClass-&gt;get($dbOrder-&gt;order_user_id); $locale = $orderClass-&gt;loadLocale($dbOrder);

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile"), [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzg2MjQtb3JkZXItY29uZmlybWF0aW9uLWVtYWlsLWxhbmd1YWdlLXN0YXlzLWluLWRlZmF1bHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")**
- [![dyvel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39996-dyvel "View dyvel's Profile")
- [ Offline](/forum/user/39996-dyvel)

Less More

- Posts: 88
- Thank you received: 20
-
-

8 years 7 months ago [\#291305](#291305) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  Replied by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")* on topic *[Order confirmation email language stays in default](/forum/29-payment-methods/878624-order-confirmation-email-language-stays-in-default#291305 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  The languages in use are Danish and English, with English being default.  1) User logs in and has Danish language set 2) User completes order and enters the ePay gateway (overlay) 3) User receives email for Order Created in Danish. This is correct 4) User completes ePay payment (in Danish) and gets sent to Thank You page, also in Danish 5) Email for Order Confirmed is received. However, it's in English 6) Another email for ePay Payment Confirmed is received in English  According to , it could be a problem with the notification URL. However, I've checked the ePay file and it matches the one in PayPal. Not sure what else could be the problem.  Is the ePay plugin maintained by the Hikashop team or ePay?")*

Thank you for sharing this fix. Had the same issue...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzg2MjQtb3JkZXItY29uZmlybWF0aW9uLWVtYWlsLWxhbmd1YWdlLXN0YXlzLWluLWRlZmF1bHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
