We are not getting the order_id in the thank you p

  • Posts: 241
  • Thank you received: 5
8 years 7 months ago #238581

Hi.

We are using :

$app = JFactory::getApplication();
$order_id = $app->getUserState('com_hikashop.order_id');
and sometimes we get the order_id but sometimes we do not get that, why?

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 6 months ago #238592

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 or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum