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

#   Problems with order confirmation emails language

##

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

Less More

- Posts: 17
- Thank you received: 3
-
-

5 years 2 weeks ago -  5 years 2 weeks ago [\#336959](#336959) by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")  *[Problems with order confirmation emails language](/forum/35-orders-management/903454-problems-with-order-confirmation-emails-language#336959 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4.24  Hello, i have a website in italian and english where italian is the default language. The link in the order confirmation mail sent to the users, points to the english version of the site even if the order was placed in Italian. What am i missing? Thank in advance")* was created by *[fullwater](/forum/user/57811-fullwater "View fullwater's Profile")*

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4.24

Hello,
i have a website in italian and english where italian is the default language.
The link in the order confirmation mail sent to the users, points to the english version of the site even if the order was placed in Italian.
What am i missing?
Thank in advance

Last edit: 5 years 2 weeks ago by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzQ1NC1wcm9ibGVtcy13aXRoLW9yZGVyLWNvbmZpcm1hdGlvbi1lbWFpbHMtbGFuZ3VhZ2U/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: 86583
- Thank you received: 14324
-
-

5 years 2 weeks ago [\#336961](#336961) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problems with order confirmation emails language](/forum/35-orders-management/903454-problems-with-order-confirmation-emails-language#336961 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4.24  Hello, i have a website in italian and english where italian is the default language. The link in the order confirmation mail sent to the users, points to the english version of the site even if the order was placed in Italian. What am i missing? Thank in advance")*

Hi,

I think it's a problem in the code.
In the file administrator/components/com_hikashop/classes/order.php we have this code: Code:

$order-&gt;order_url = hikashop_contentLink('order&amp;task=show&amp;cid[]='.$order-&gt;order_id.$url, $order, false, false, false, true); $app = JFactory::getApplication(); $locale = $this-&gt;loadLocale($order);

The call to the loadLocale function is what properly sets the current language to the language of the customer. But it is placed after the line setting $order-&gt;order_url which contains the URL of the order.
So I think this code should be changed to swap both lines, like this: Code:

$locale = $this-&gt;loadLocale($order); $order-&gt;order_url = hikashop_contentLink('order&amp;task=show&amp;cid[]='.$order-&gt;order_id.$url, $order, false, false, false, true); $app = JFactory::getApplication();

It should then generate a link with the correct language.

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

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

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

Less More

- Posts: 17
- Thank you received: 3
-
-

5 years 1 week ago [\#336981](#336981) by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")  Replied by *[fullwater](/forum/user/57811-fullwater "View fullwater's Profile")* on topic *[Problems with order confirmation emails language](/forum/35-orders-management/903454-problems-with-order-confirmation-emails-language#336981 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4.24  Hello, i have a website in italian and english where italian is the default language. The link in the order confirmation mail sent to the users, points to the english version of the site even if the order was placed in Italian. What am i missing? Thank in advance")*

Hi Nicolas, it works, thank You.
Are you planning to fix the code on next release or i'll have to change manually those lines on every single update?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzQ1NC1wcm9ibGVtcy13aXRoLW9yZGVyLWNvbmZpcm1hdGlvbi1lbWFpbHMtbGFuZ3VhZ2U/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: 86583
- Thank you received: 14324
-
-

5 years 1 week ago [\#336988](#336988) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problems with order confirmation emails language](/forum/35-orders-management/903454-problems-with-order-confirmation-emails-language#336988 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4.24  Hello, i have a website in italian and english where italian is the default language. The link in the order confirmation mail sent to the users, points to the english version of the site even if the order was placed in Italian. What am i missing? Thank in advance")*

Hi,

The modification is added on our end for the next version of HikaShop, so no worries.

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

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

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

Less More

- Posts: 17
- Thank you received: 3
-
-

5 years 1 week ago [\#337035](#337035) by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")  Replied by *[fullwater](/forum/user/57811-fullwater "View fullwater's Profile")* on topic *[Problems with order confirmation emails language](/forum/35-orders-management/903454-problems-with-order-confirmation-emails-language#337035 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4.24  Hello, i have a website in italian and english where italian is the default language. The link in the order confirmation mail sent to the users, points to the english version of the site even if the order was placed in Italian. What am i missing? Thank in advance")*

Nice of you. Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzQ1NC1wcm9ibGVtcy13aXRoLW9yZGVyLWNvbmZpcm1hdGlvbi1lbWFpbHMtbGFuZ3VhZ2U/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.055 seconds

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