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

#   Display the order number on Thank you page

##

- **[gutierrez13](/forum/user/59065-gutierrez13 "View gutierrez13's Profile")**
- [![gutierrez13's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59065-gutierrez13 "View gutierrez13's Profile") Topic Author
- [ Offline](/forum/user/59065-gutierrez13)

Less More

- Posts: 6
- Thank you received: 0
-
-

6 years 10 months ago -  6 years 10 months ago [\#315068](#315068) by [gutierrez13](/forum/user/59065-gutierrez13 "View gutierrez13's Profile")  *[Display the order number on Thank you page](/forum/25-install-update/899069-display-the-order-number-on-thank-you-page#315068 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.1.33 -- Browser(s) name and version -- : Chrome  Hello. I would like to modify the paypalpro&#95;thanks.php page so that it includes a line like:  Thank you for your order. Your order number is: xxxxxx. If you have any question about your order please do not hesitate to .  I have tried using the object $this-&gt;order-&gt;order&#95;number; but it will not work.  Please help.")* was created by *[gutierrez13](/forum/user/59065-gutierrez13 "View gutierrez13's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.1.33
-- Browser(s) name and version -- : Chrome

Hello. I would like to modify the paypalpro_thanks.php page so that it includes a line like:

Thank you for your order. Your order number is: xxxxxx. If you have any question about your order please do not hesitate to contact us.

I have tried using the object $this-&gt;order-&gt;order_number; but it will not work.

Please help.

Last edit: 6 years 10 months ago by [gutierrez13](/forum/user/59065-gutierrez13 "View gutierrez13's Profile"). Reason: I just realized I placed this question in the wrong category. Sorry.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

6 years 10 months ago [\#315074](#315074) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display the order number on Thank you page](/forum/25-install-update/899069-display-the-order-number-on-thank-you-page#315074 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.1.33 -- Browser(s) name and version -- : Chrome  Hello. I would like to modify the paypalpro&#95;thanks.php page so that it includes a line like:  Thank you for your order. Your order number is: xxxxxx. If you have any question about your order please do not hesitate to .  I have tried using the object $this-&gt;order-&gt;order&#95;number; but it will not work.  Please help.")*

Hi,

The variable $this-&gt;order is not initialized there.
You would need to add the code:
$this-&gt;order =&amp; $order;
before the line:
return $this-&gt;showPage('thanks');
in the file paypalpro.php to be able to use $this-&gt;order in the paypalpro_thanks.php file.

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

- **[gutierrez13](/forum/user/59065-gutierrez13 "View gutierrez13's Profile")**
- [![gutierrez13's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59065-gutierrez13 "View gutierrez13's Profile") Topic Author
- [ Offline](/forum/user/59065-gutierrez13)

Less More

- Posts: 6
- Thank you received: 0
-
-

6 years 10 months ago [\#315117](#315117) by [gutierrez13](/forum/user/59065-gutierrez13 "View gutierrez13's Profile")  Replied by *[gutierrez13](/forum/user/59065-gutierrez13 "View gutierrez13's Profile")* on topic *[Display the order number on Thank you page](/forum/25-install-update/899069-display-the-order-number-on-thank-you-page#315117 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.1.33 -- Browser(s) name and version -- : Chrome  Hello. I would like to modify the paypalpro&#95;thanks.php page so that it includes a line like:  Thank you for your order. Your order number is: xxxxxx. If you have any question about your order please do not hesitate to .  I have tried using the object $this-&gt;order-&gt;order&#95;number; but it will not work.  Please help.")*

That did the trick. Thank you Nicolas!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5OTA2OS1kaXNwbGF5LXRoZS1vcmRlci1udW1iZXItb24tdGhhbmsteW91LXBhZ2U/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.046 seconds

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