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

#   We are not getting the order\_id in the thank you p

##

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

Less More

- Posts: 241
- Thank you received: 5
-
-

10 years 6 months ago [\#238581](#238581) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  *[We are not getting the order\_id in the thank you p](/forum/27-checkout/884217-we-are-not-getting-the-order-id-in-the-thank-you-p#238581 "Hi.  We are using :  and sometimes we get the order&#95;id but sometimes we do not get that, why?  Thanks.")* was created by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")*

Hi.

We are using : Code:

$app = JFactory::getApplication(); $order_id = $app-&gt;getUserState('com_hikashop.order_id');

and sometimes we get the order_id but sometimes we do not get that, why?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDIxNy13ZS1hcmUtbm90LWdldHRpbmctdGhlLW9yZGVyLWlkLWluLXRoZS10aGFuay15b3UtcD90bXBsPW1hcmtkb3du) 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: 86358
- Thank you received: 14290
-
-

10 years 6 months ago [\#238592](#238592) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[We are not getting the order\_id in the thank you p](/forum/27-checkout/884217-we-are-not-getting-the-order-id-in-the-thank-you-p#238592 "Hi.  We are using :  and sometimes we get the order&#95;id but sometimes we do not get that, why?  Thanks.")*

Hi,

It depends. That value is set in the user session.
Once the user session expires (log out, use another browser, go from the www to the non www URL of the website, go from the https to the http URL of the website, etc), the value is lost.

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

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