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

#   How to include order details on the thank you page

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 10 months ago [\#32253](#32253) by [yobaba](/forum/user/4981-yobaba "View yobaba's Profile")  *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#32253 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")* was created by *[yobaba](/forum/user/4981-yobaba "View yobaba's Profile")*

Hi, first of all, great product!

I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.

I found that the file to modify is in views/checkout/tmpl/after_end.php

Here is the code I added there:

$app =&amp; JFactory::getApplication();
$order_id = $app-&gt;getUserState('com_hikashop.order_id');

$orderClass = hikashop::get('class.order');
$order = $orderClass-&gt;loadFullOrder($order_id);

$orderNum = $order-&gt;order_number;

$app-&gt;enqueueMessage( '&lt;br&gt;Order id: '.$order_id.'&lt;br&gt;Order Number: '.$orderNum );

At this point both the order_id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?

Thanks for the help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

14 years 10 months ago [\#32287](#32287) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#32287 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

If you use a recent version of HikaShop, the order is already loaded in after_end.
You can do like that:
$app =&amp; JFactory::getApplication();
$app-&gt;enqueueMessage( '&lt;br/&gt;Order id: '.$this-&gt;order-&gt;order_id.'&lt;br/&gt;Order Number: '.$this-&gt;order-&gt;order_number );

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 10 months ago [\#32609](#32609) by [yobaba](/forum/user/4981-yobaba "View yobaba's Profile")  Replied by *[yobaba](/forum/user/4981-yobaba "View yobaba's Profile")* on topic *[Re: How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#32609 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Got it working, thank you so much!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 6 months ago [\#152948](#152948) by [rajkumar](/forum/user/32119-rajkumar "View rajkumar's Profile")  Replied by *[rajkumar](/forum/user/32119-rajkumar "View rajkumar's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#152948 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi

i Want to include order details for paypal pro method. the file it redirects once the payment successful is views/checkout/tmpl/end.php however i cant get order details on this page ? i,e $this-&gt;order not working. Please help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

12 years 6 months ago -  9 years 9 months ago [\#152951](#152951) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#152951 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

You can use the same code. However, before that code, you need to manually load the order data like that: Code:

$app = JFactory::getApplication(); $order_id = $app-&gt;getUserState('com_hikashop.order_id'); $orderClass = hikashop_get('class.order'); $this-&gt;order = $orderClass-&gt;loadFullOrder($order_id,false,false);

Last edit: 9 years 9 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 59
- Thank you received: 1
-
-

10 years 10 months ago -  10 years 10 months ago [\#224782](#224782) by [madjedo](/forum/user/35774-madjedo "View madjedo's Profile")  Replied by *[madjedo](/forum/user/35774-madjedo "View madjedo's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#224782 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

I think you have a really good notifcation e-mail sent to the customers.

However! Your thank you page is very boring! It just states a 'Thank you' message...

I have an idea.

Is there someway I can simply put everything you see in the creation/confirmation mail that is sent to the customers e-mail, also in the thank you page?

So basically just take the whole confirmation e-mail and copy it in to the thank you page.

I think it makes for a much more pleasant shopping experience if the customer also directly gets too see the same info as in the status e-mail, instead of just a thank you... Or is this too much too ask?

Best Regards and merry christmas!

Last edit: 10 years 10 months ago by [madjedo](/forum/user/35774-madjedo "View madjedo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

10 years 10 months ago [\#224785](#224785) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#224785 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

You could simply redirect to the order details page of the order.
It's easy to add.
You can add such code in the file "after_end" via the menu Display&gt;views: Code:

&lt;?php $app = JFactory::getApplication(); $app-&gt;redirect(hikashop_completeLink('order&amp;task=show',false,true)); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 59
- Thank you received: 1
-
-

10 years 10 months ago -  10 years 10 months ago [\#224842](#224842) by [madjedo](/forum/user/35774-madjedo "View madjedo's Profile")  Replied by *[madjedo](/forum/user/35774-madjedo "View madjedo's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#224842 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi, thank you. I have facebook/google conversion code tracker on that page. Will it still work even if they are redirected?

* Oh, and I use guest-checkout. You have to "login" to see that page actually...

* I think optimal would be to redirect the user after 2-3 seconds to his last order page. But I use guest-checkout so I dont know if this would be possible...

Last edit: 10 years 10 months ago by [madjedo](/forum/user/35774-madjedo "View madjedo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

10 years 10 months ago [\#224858](#224858) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#224858 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

The facebook/google conversion code tracker code won't work if people are redirected.
And if you have guest checkout, the order details page is indeed not available to them.

In such case, a different solution would be required where you would directly display the order details in the "after_end" view file.
But in that case, it will require complex custom code and you can't just copy/paste it from somewhere else.
In that case, I would recommend to contact a developer to help you with that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 59
- Thank you received: 1
-
-

10 years 10 months ago [\#224918](#224918) by [madjedo](/forum/user/35774-madjedo "View madjedo's Profile")  Replied by *[madjedo](/forum/user/35774-madjedo "View madjedo's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#224918 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Ok thank you anyways.

In the meantime, can you help me with the code to just display some simple text, like this:

Your order (#ordernr) is now confirmed. An e-mail has been sent to your adress (#customermail) with additional information.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 10 months ago [\#224933](#224933) 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 include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#224933 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

There is already the corresponding information to get the order number in the first reply made Nicolas in that thread.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 846
- Thank you received: 92
-
-

10 years 1 month ago -  10 years 1 month ago [\#250592](#250592) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#250592 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi
A) When the mouse click on end_file link in the column of name File ... All the link goes JOOMLA/Administrator/index.php?option=com_hikashop&amp;ctrl=view&amp;task=edit&amp;id=0&#124;beez3&#124;component&#124;com_hikashop&#124;checkout&#124;after_end%2Ephp and only the template name in red change beetween item .
What does it mean in joomla word refer to this [ doc](https://docs.joomla.org/Layout_Overrides_in_Joomla) ? Do we override the hikashop component layout for specific template ?

####  Attachment not found

B ) after click on the first item , I can edit the code .
cms3 API link in code give
&lt;?php
$app = JFactory::[ getApplication](https://api.joomla.org/cms-3/classes/JFactory.html#method_getApplication)();
$app-&gt;[ redirect](https://api.joomla.org/cms-3/classes/JApplication.html#method_redirect)(hikashop_completeLink('order&amp;task=show',false,true));
?&gt;
where is documented the "method ?" hikashop_completeLink ?
i think it is like [ angular redirect ](https://angular.io/docs/ts/latest/guide/router.html#!#redirect)but for php

C) the code above can be replace by the new code Code:

$app =&amp; JFactory::getApplication(); $app-&gt;enqueueMessage( '&lt;br/&gt;Order id: '.$this-&gt;order-&gt;order_id.'&lt;br/&gt;Order Number: '.$this-&gt;order-&gt;order_number );

Code:

$order_id = $app-&gt;getUserState('com_hikashop.order_id'); $orderClass = hikashop_get('class.order'); $this-&gt;order = $orderClass-&gt;loadFullOrder($order_id,false,false); $app-&gt;enqueueMessage( '&lt;br/&gt;Order id: '.$this-&gt;order-&gt;order_id.'&lt;br/&gt;Order Number: '.$this-&gt;order-&gt;order_number );

what mean hikashop_get('class.order'); ? a alias ? where is the doc about this ?

C) Save this php file ll create a new file ( implicit) for the template

####  Attachment not found

D) and the Joomla back end show that we override the file content

####  Attachment not found

Regard's

Last edit: 10 years 1 month ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 34
- Thank you received: 0
-
-

9 years 9 months ago [\#258949](#258949) by [tecnosystempanama](/forum/user/38545-tecnosystempanama "View tecnosystempanama's Profile")  Replied by *[tecnosystempanama](/forum/user/38545-tecnosystempanama "View tecnosystempanama's Profile")* on topic *[Re: How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#258949 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi, Does this works in guest mode?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

9 years 9 months ago [\#258963](#258963) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#258963 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

No. The order details page is only available while logged in so no.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 34
- Thank you received: 0
-
-

9 years 9 months ago [\#259018](#259018) by [tecnosystempanama](/forum/user/38545-tecnosystempanama "View tecnosystempanama's Profile")  Replied by *[tecnosystempanama](/forum/user/38545-tecnosystempanama "View tecnosystempanama's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#259018 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi, This has help me a lot, how can i get the user information in guest mode in the after_:end page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

9 years 9 months ago [\#259020](#259020) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to include order details on the thank you page](/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page#259020 "Hi, first of all, great product!  I'm wondering if it's possible to display the details of the order on the thank you page. I'm implementing standard paypal payment checkout.  I found that the file to modify is in views/checkout/tmpl/after&#95;end.php  Here is the code I added there:  $app =&amp; JFactory::getApplication(); $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id');  $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order&#95;id);  $orderNum = $order-&gt;order&#95;number;  $app-&gt;enqueueMessage( 'Order id: '.$order&#95;id.'Order Number: '.$orderNum );  At this point both the order&#95;id and Order numbers are blank. I'm thinking maybe since the checkout process is already finished, the order is empty? Can I load it from the database somehow?  Thanks for the help!")*

Hi,

You can try to use such code to load the data from the order placed by the customer:
[ www.hikashop.com/forum/4-how-to/32253-ho...you-page.html#152951](https://www.hikashop.com/forum/4-how-to/32253-how-to-include-order-details-on-the-thank-you-page.html#152951)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyMjUzLWhvdy10by1pbmNsdWRlLW9yZGVyLWRldGFpbHMtb24tdGhlLXRoYW5rLXlvdS1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.127 seconds

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