How to I pass the Order ID and total sales price

  • Posts: 75
  • Thank you received: 12
8 years 3 months ago #247819

-- url of the page with the problem -- : cilsposana.com/purchase-thankyou
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.4

How to I pass the Order ID and total sales Price to our thank-you page when an order is processed through PayPal ? Our affiliate program requires this (re: Affiliatly)

Thanks
Danny


Danny Malouin
BeNu - Digital success agency
benu.ca

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
8 years 3 months ago #247824

Hi,

You can't pass that information in the URL but you can access to the order directly in the view.
Depending the context, you will have the order object available via " $this->order ", otherwise you would be able to get the last order_id of the customer in the session and load the order from the database.

$order_id = $app->getUserState(HIKASHOP_COMPONENT.'.order_id');

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum