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

#   when is the language of the order set

##

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

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

3 years 4 weeks ago [\#356191](#356191) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  *[when is the language of the order set](/forum/35-orders-management/907195-when-is-the-language-of-the-order-set#356191 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.0 -- PHP version -- : 8.2  Hi,  I'm wondering where the language of the order is set? If I'm correct it defaults to English. If this is the case, why not to the default language of the site when ordering as guest? Just trying to figure out stuff so not complaining :-)")* was created by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")*

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.4.0
-- PHP version -- : 8.2

Hi,

I'm wondering where the language of the order is set?
If I'm correct it defaults to English.
If this is the case, why not to the default language of the site when ordering as guest?
Just trying to figure out stuff so not complaining ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNzE5NS13aGVuLWlzLXRoZS1sYW5ndWFnZS1vZi10aGUtb3JkZXItc2V0P3RtcGw9bWFya2Rvd24=) 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
-
-

3 years 4 weeks ago [\#356194](#356194) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[when is the language of the order set](/forum/35-orders-management/907195-when-is-the-language-of-the-order-set#356194 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.0 -- PHP version -- : 8.2  Hi,  I'm wondering where the language of the order is set? If I'm correct it defaults to English. If this is the case, why not to the default language of the site when ordering as guest? Just trying to figure out stuff so not complaining :-)")*

Hi,

The language of the order is stored in the "order_lang" column of the hikashop_order.
This is set in the save function of the order class ( in the file administrator/components/com_hikashop/classes/order.php ) when the order is being created, using the current language of the website. It uses this code: Code:

if($new &amp;&amp; empty($order-&gt;order_lang)) { $lang = JFactory::getLanguage(); $order-&gt;order_lang = $lang-&gt;getTag(); }

So no, it doesn't default to English as far as I know.

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

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