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

#   How to I pass the Order ID and total sales price

##

- **[iDanny](/forum/user/43074-idanny "View iDanny's Profile")**
- [![iDanny's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar43074.png)](/forum/user/43074-idanny "View iDanny's Profile") Topic Author
- [ Offline](/forum/user/43074-idanny)

Less More

- Posts: 75
- Thank you received: 12
-
-
- [](https://benu.ca)
-

10 years 3 months ago [\#247819](#247819) by [iDanny](/forum/user/43074-idanny "View iDanny's Profile")  *[How to I pass the Order ID and total sales price](/forum/27-checkout/886040-how-to-i-pass-the-order-id-and-total-sales-price#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")* was created by *[iDanny](/forum/user/43074-idanny "View iDanny's Profile")*

-- url of the page with the problem -- : [ cilsposana.com/purchase-thankyou](http://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](https://benu.ca)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjA0MC1ob3ctdG8taS1wYXNzLXRoZS1vcmRlci1pZC1hbmQtdG90YWwtc2FsZXMtcHJpY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 months ago [\#247824](#247824) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to I pass the Order ID and total sales price](/forum/27-checkout/886040-how-to-i-pass-the-order-id-and-total-sales-price#247824 "-- 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")*

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-&gt;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-&gt;getUserState(HIKASHOP_COMPONENT.'.order_id');

Regards,

---

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

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

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