redirection after purchase

  • Posts: 25
  • Thank you received: 1
9 years 4 months ago #208932

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37

Hi,
I want to redirect the customer to product detail page after purchase, how can get "order id" of the order in end.php?
Thank you.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 4 months ago #208935

Hi,

You can user such code:

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

The following user(s) said Thank You: nabukadnezar

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

Time to create page: 0.054 seconds
Powered by Kunena Forum