How to I pass the Order ID and total sales price
10 years 1 month ago #247819
by iDanny
Danny Malouin
BeNu - Digital success agency
benu.ca
How to I pass the Order ID and total sales price was created by iDanny
-- 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
-- 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.
10 years 1 month ago #247824
by Jerome
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.
Replied by Jerome on topic How to I pass the Order ID and total sales price
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.
Regards,
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.
Code:
$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.188 seconds