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

#   Adding order information to after\_end.php

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 2 months ago [\#125252](#125252) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#125252 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")* was created by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")*

Hello,

I am trying to update the after_end.php and can successfully add text, but I would like to add the order details to the page also.

To see which variables exist, I put the following, but nothing is showing.
Code:

echo"&lt;pre&gt;"; print_r($this-&gt;order); echo"&lt;/pre&gt;";

I even tried Code:

$this-&gt;order-&gt;order_id

but that too doesn't seem to display anything.

I am currently on Hikashop Business 2.2.1

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjM1Mi1hZGRpbmctb3JkZXItaW5mb3JtYXRpb24tdG8tYWZ0ZXItZW5kLXBocD90bXBsPW1hcmtkb3du) 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)
-

13 years 2 months ago [\#125275](#125275) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#125275 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Hi,

Are you editing the view for the right front-end tempplate ?

Regards,

---

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

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 2 months ago -  13 years 2 months ago [\#125294](#125294) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#125294 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

I am yes. I was able to add Code:

&lt;h2&gt;&lt;?php echo JText::_( 'Thank you for your order!'); ?&gt;&lt;/h2&gt; &lt;h3&gt;&lt;?php echo JText::_( 'An email has been sent with your order information.'); ?&gt;&lt;/h3&gt;

and that shows up correctly.

Thanks again!!!

Last edit: 13 years 2 months ago by [munk38](/forum/user/9464-munk38 "View munk38's Profile").

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 1 month ago [\#127658](#127658) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#127658 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

This page pops up just after clicking the checkout and right before the final page. I have no idea where it's coming from or even how to remedy it. My guess is that it's breaking something so the after_end.php isn't displaying the info.

Thanks again!

- [ ![hdfd84a0.jpg](/forum/attachment/12838) ](/forum/attachment/12838 "hdfd84a0.jpg") [ ](/forum/attachment/12838?download=1 "hdfd84a0.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjM1Mi1hZGRpbmctb3JkZXItaW5mb3JtYXRpb24tdG8tYWZ0ZXItZW5kLXBocD90bXBsPW1hcmtkb3du) 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)
-

13 years 1 month ago [\#127665](#127665) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#127665 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Hi,

Did you read the error message displayed ?

Regards,

---

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

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 4 weeks ago [\#130219](#130219) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130219 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

We remedied the error that popped up on check out. Don't know if you want to create a separate resolved post just in case it happens to others. Evidently Authorize.net didn't like that our IP ended in .255 and that caused the error shown. Everything checks out now as far as processing the order.

The after_end.php page still is not showing any of the order information?!!?!?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjM1Mi1hZGRpbmctb3JkZXItaW5mb3JtYXRpb24tdG8tYWZ0ZXItZW5kLXBocD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 4 weeks ago [\#130221](#130221) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130221 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

The code that you added in after_end is the correct one.
Which means that the after_end file is probably not called at all as you must be using authorize.net in AIM. In that case, it's the "end" file that you want to edit. By default there are no variables in the "end" view file, but you can call it after_end to load the order like that:
&lt;?php $this-&gt;after_end(); ?&gt;

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 3 weeks ago [\#130424](#130424) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130424 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Thanks Nicolas! It seems that the after_end.php file is loading last after checkout as it shows the H2 I added. But will not show: Code:

echo"&lt;pre&gt;"; print_r($this-&gt;order); echo"&lt;/pre&gt;";

.

Should I still add &lt;?php $this-&gt;after_end(); ?&gt; to the end.php file?

Thanks!

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 3 weeks ago [\#130487](#130487) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130487 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Hi,

No you shouldn't have to add the code to the end.php file if your title is displayed.
Thanks to set the error reporting of Joomla to "Maximum" and enable the debug mode in order to see if any errors are returned.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 3 weeks ago [\#130503](#130503) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130503 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Thanks.
I receive:
Notice: Trying to get property of non-object in /mysitestructure/html/com_hikashop/checkout/after_end.php on line 32

Line 32: Code:

echo $this-&gt;order-&gt;order_id;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjM1Mi1hZGRpbmctb3JkZXItaW5mb3JtYXRpb24tdG8tYWZ0ZXItZW5kLXBocD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 3 weeks ago [\#130550](#130550) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130550 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

In that case it means that the "order_id" is missing from $_SESSION. It is stored there by HikaShop when the order is created at the end of the checkout.
So you should definitely have access to it.
If you do:
$app = JFactory::getApplication();
$order_id = $app-&gt;getUserState('com_hikashop.order_id');
var_dump($order_id);

Do you get the id of the order displayed ? If yes, then you should definitely get the order data in $this-&gt;order since the after_end() function simply load the order in that attribute of $this for the order id stored in the session. If no, then maybe there is an issue with the session somehow.

By the way, how did you configure your payment method ? Could you do a screenshot (and remove the confidential data in it) ?

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 3 weeks ago [\#130580](#130580) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130580 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Bingo! That worked. Attached is the screenshot.

- [ ![hc2b2d63.jpg](/forum/attachment/13371) ](/forum/attachment/13371 "hc2b2d63.jpg") [ ](/forum/attachment/13371?download=1 "hc2b2d63.jpg")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 3 weeks ago [\#130586](#130586) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130586 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Being we are calling the order_id in the getUserState, if I want to call other variables do I need to call each one separately? Code:

$order_total = $app-&gt;getUserState('com_hikashop.order_total');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjM1Mi1hZGRpbmctb3JkZXItaW5mb3JtYXRpb24tdG8tYWZ0ZXItZW5kLXBocD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 3 weeks ago [\#130598](#130598) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130598 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Once you have the order_id, you can use such code to load all the data from the order:
$orderClass = hikashop_get('class.order');
$order = $orderClass-&gt;loadFullOrder($order_id);

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 3 weeks ago [\#130605](#130605) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130605 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Thanks!! I use:
Code:

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

and it comes back NULL ![:(](/media/kunena/emoticons/22.png ":(") I must be forgetting something. Thanks again for you help on this!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjM1Mi1hZGRpbmctb3JkZXItaW5mb3JtYXRpb24tdG8tYWZ0ZXItZW5kLXBocD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 3 weeks ago [\#130650](#130650) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130650 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

This means that you must be in guest checkout mode. Users don't have access to the data of the order in guest checkout and thus, at the end of the checkout, the user goes out of the guest mode and can't access the order data.
To force the access of the data, you need to change the line:
$order = $orderClass-&gt;loadFullOrder($order_id);

to:
$order = $orderClass-&gt;loadFullOrder($order_id,false,false);

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 3 weeks ago [\#130939](#130939) by [munk38](/forum/user/9464-munk38 "View munk38's Profile")  Replied by *[munk38](/forum/user/9464-munk38 "View munk38's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#130939 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

Bingo!!

Worked like a charm. Thanks!

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

12 years 7 months ago [\#153097](#153097) by [edocif](/forum/user/30739-edocif "View edocif's Profile")  Replied by *[edocif](/forum/user/30739-edocif "View edocif's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#153097 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

I use this code:

> munk38 wrote: Thanks!! I use:
>
> Code:
>
> $app = JFactory::getApplication(); $order_id = $app-&gt;getUserState('com_hikashop.order_id'); $orderClass = hikashop_get('class.order'); $order = $orderClass-&gt;loadFullOrder($order_id); var_dump($order);
>
>
>
>
> and it comes back NULL ![:(](/media/kunena/emoticons/22.png ":(") I must be forgetting something. Thanks again for you help on this!!!

I'm testing the cart so i'm using a free coupon vs. processing a payment i've modified end.php and it returns the following

Thank you for your purchase.object(stdClass)#619 (40) { ["order_id"]=&gt; string(2) "11" ["order_billing_address_id"]=&gt; string(1) "3" ["order_shipping_address_id"]=&gt; string(1) "3" ["order_user_id"]=&gt; string(1) "3" ["order_status"]=&gt; string(9) "confirmed" ["order_type"]=&gt; string(4) "sale" ["order_number"]=&gt; string(3) "M11" ["order_created"]=&gt; string(10) "1398173803" ["order_modified"]=&gt; string(10) "1398173803" ["order_invoice_id"]=&gt; string(2) "11" ["order_invoice_number"]=&gt; string(3) "M11" ["order_invoice_created"]=&gt; string(10) "1398173803" ["order_currency_id"]=&gt; string(1) "2" ["order_full_price"]=&gt; string(7) "0.00000" ["order_tax_info"]=&gt; string(0) "" ["order_discount_code"]=&gt; string(9) "freeforme" ["order_discount_price"]=&gt; string(7) "8.95000" ["order_discount_tax"]=&gt; string(7) "0.00000" ["order_payment_id"]=&gt; string(1) "0" ["order_payment_method"]=&gt; string(0) "" ["order_payment_price"]=&gt; string(7) "0.00000" ["order_payment_params"]=&gt; string(0) "" ["order_shipping_id"]=&gt; string(0) "" ["order_shipping_method"]=&gt; string(0) "" ["order_shipping_price"]=&gt; string(7) "0.00000" ["order_shipping_tax"]=&gt; string(7) "0.00000" ["order_shipping_params"]=&gt; string(0) "" ["order_partner_id"]=&gt; string(1) "0" ["order_partner_price"]=&gt; string(7) "0.00000" ["order_partner_paid"]=&gt; string(1) "0" ["order_partner_currency_id"]=&gt; string(1) "0" ["order_ip"]=&gt; string(13) "98.217.140.46" ["customer"]=&gt; object(stdClass)#777 (29) { ["user_id"]=&gt; string(1) "3" ["user_cms_id"]=&gt; string(3) "355" ["user_email"]=&gt; string(16) "edocif@gmail.com" ["user_partner_email"]=&gt; string(0) "" ["user_params"]=&gt; string(0) "" ["user_partner_id"]=&gt; string(1) "0" ["user_partner_price"]=&gt; string(7) "0.00000" ["user_partner_paid"]=&gt; string(1) "0" ["user_created_ip"]=&gt; string(13) "98.217.140.46" ["user_unpaid_amount"]=&gt; string(7) "0.00000" ["user_partner_currency_id"]=&gt; string(1) "0" ["user_created"]=&gt; string(10) "1398098645" ["user_currency_id"]=&gt; string(1) "0" ["user_partner_activated"]=&gt; string(1) "0" ["id"]=&gt; string(3) "355" ["name"]=&gt; string(11) "Jason Brown" ["username"]=&gt; string(6) "edocif" ["email"]=&gt; string(16) "edocif@gmail.com" ["password"]=&gt; string(34) "$P$DFEWGxOfq7jJMQJOcsyK6ZYyBcFbJ41" ["block"]=&gt; string(1) "0" ["sendEmail"]=&gt; string(1) "0" ["registerDate"]=&gt; string(19) "2014-04-21 16:44:05" ["lastvisitDate"]=&gt; string(19) "2014-04-22 13:12:38" ["activation"]=&gt; string(0) "" ["params"]=&gt; string(124) "{"site_language":"en-GB","language":"en-GB","admin_style":"","admin_language":"","editor":"jce","helpsite":"","timezone":""}" ["lastResetTime"]=&gt; string(19) "0000-00-00 00:00:00" ["resetCount"]=&gt; string(1) "0" ["otpKey"]=&gt; string(0) "" ["otep"]=&gt; string(0) "" } ["order_subtotal"]=&gt; float(8.95) ["shipping_address"]=&gt; object(stdClass)#627 (19) { ["address_id"]=&gt; string(1) "3" ["address_user_id"]=&gt; string(1) "3" ["address_title"]=&gt; string(2) "Mr" ["address_firstname"]=&gt; string(5) "Jason" ["address_middle_name"]=&gt; NULL ["address_lastname"]=&gt; string(5) "Brown" ["address_company"]=&gt; NULL ["address_street"]=&gt; string(15) "46 Ridgewood St" ["address_street2"]=&gt; string(0) "" ["address_post_code"]=&gt; string(5) "03103" ["address_city"]=&gt; string(10) "manchester" ["address_telephone"]=&gt; string(10) "6033611142" ["address_telephone2"]=&gt; NULL ["address_fax"]=&gt; NULL ["address_state"]=&gt; NULL ["address_country"]=&gt; NULL ["address_published"]=&gt; string(1) "1" ["address_vat"]=&gt; NULL ["address_default"]=&gt; string(1) "1" } ["fields"]=&gt; array(7) { ["address_title"]=&gt; object(stdClass)#637 (19) { ["field_id"]=&gt; string(1) "1" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(5) "Title" ["field_namekey"]=&gt; string(13) "address_title" ["field_type"]=&gt; string(14) "singledropdown" ["field_value"]=&gt; array(5) { ["Mr"]=&gt; object(stdClass)#758 (2) { ["value"]=&gt; string(13) "HIKA_TITLE_MR" ["disabled"]=&gt; string(1) "0" } ["Mrs"]=&gt; object(stdClass)#757 (2) { ["value"]=&gt; string(14) "HIKA_TITLE_MRS" ["disabled"]=&gt; string(1) "0" } ["Miss"]=&gt; object(stdClass)#756 (2) { ["value"]=&gt; string(15) "HIKA_TITLE_MISS" ["disabled"]=&gt; string(1) "0" } ["Ms"]=&gt; object(stdClass)#755 (2) { ["value"]=&gt; string(13) "HIKA_TITLE_MS" ["disabled"]=&gt; string(1) "0" } ["Dr"]=&gt; object(stdClass)#754 (2) { ["value"]=&gt; string(13) "HIKA_TITLE_DR" ["disabled"]=&gt; string(1) "0" } } ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "1" ["field_options"]=&gt; string(107) "a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_firstname"]=&gt; object(stdClass)#634 (19) { ["field_id"]=&gt; string(1) "2" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(9) "Firstname" ["field_namekey"]=&gt; string(17) "address_firstname" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "2" ["field_options"]=&gt; string(107) "a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_lastname"]=&gt; object(stdClass)#633 (19) { ["field_id"]=&gt; string(1) "4" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(![8)](/media/kunena/emoticons/9.png "8)") "Lastname" ["field_namekey"]=&gt; string(16) "address_lastname" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "4" ["field_options"]=&gt; string(107) "a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_street"]=&gt; object(stdClass)#632 (19) { ["field_id"]=&gt; string(1) "6" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(6) "Street" ["field_namekey"]=&gt; string(14) "address_street" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "6" ["field_options"]=&gt; string(107) "a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_post_code"]=&gt; object(stdClass)#631 (19) { ["field_id"]=&gt; string(1) "8" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(9) "Post code" ["field_namekey"]=&gt; string(17) "address_post_code" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "8" ["field_options"]=&gt; string(107) "a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "0" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_city"]=&gt; object(stdClass)#630 (19) { ["field_id"]=&gt; string(1) "9" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(4) "City" ["field_namekey"]=&gt; string(12) "address_city" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "9" ["field_options"]=&gt; string(107) "a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_telephone"]=&gt; object(stdClass)#629 (19) { ["field_id"]=&gt; string(2) "10" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(9) "Telephone" ["field_namekey"]=&gt; string(17) "address_telephone" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(2) "10" ["field_options"]=&gt; string(107) "a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } } ["billing_address"]=&gt; object(stdClass)#635 (19) { ["address_id"]=&gt; string(1) "3" ["address_user_id"]=&gt; string(1) "3" ["address_title"]=&gt; string(2) "Mr" ["address_firstname"]=&gt; string(5) "Jason" ["address_middle_name"]=&gt; NULL ["address_lastname"]=&gt; string(5) "Brown" ["address_company"]=&gt; NULL ["address_street"]=&gt; string(15) "46 Ridgewood St" ["address_street2"]=&gt; string(0) "" ["address_post_code"]=&gt; string(5) "03103" ["address_city"]=&gt; string(10) "manchester" ["address_telephone"]=&gt; string(10) "6033611142" ["address_telephone2"]=&gt; NULL ["address_fax"]=&gt; NULL ["address_state"]=&gt; NULL ["address_country"]=&gt; NULL ["address_published"]=&gt; string(1) "1" ["address_vat"]=&gt; NULL ["address_default"]=&gt; string(1) "1" } ["products"]=&gt; array(1) { [0]=&gt; object(stdClass)#659 (19) { ["order_product_id"]=&gt; string(2) "14" ["order_id"]=&gt; string(2) "11" ["product_id"]=&gt; string(2) "20" ["order_product_quantity"]=&gt; string(1) "1" ["order_product_name"]=&gt; string(43) "11. Managing Up: Asking the Right Questions" ["order_product_code"]=&gt; string(43) "11__Managing_Up__Asking_the_Right_Questions" ["order_product_price"]=&gt; string(7) "8.95000" ["order_product_tax"]=&gt; string(7) "0.00000" ["order_product_tax_info"]=&gt; array(0) { } ["order_product_options"]=&gt; string(0) "" ["order_product_option_parent_id"]=&gt; string(1) "0" ["order_product_wishlist_id"]=&gt; string(1) "0" ["order_product_shipping_id"]=&gt; string(0) "" ["order_product_shipping_method"]=&gt; string(0) "" ["order_product_shipping_price"]=&gt; string(7) "0.00000" ["order_product_shipping_tax"]=&gt; string(7) "0.00000" ["order_product_shipping_params"]=&gt; string(0) "" ["order_product_total_price_no_vat"]=&gt; float(8.95) ["order_product_total_price"]=&gt; float(8.95) } } ["additional"]=&gt; array(0) { } ["order_subtotal_no_vat"]=&gt; float(8.95) }

How do i get this to show the order in a graphical format? my code for end.php is as follows :

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(empty($this-&gt;html)){
echo JText::_('THANK_YOU_FOR_PURCHASE');
$app = JFactory::getApplication();
$order_id = $app-&gt;getUserState('com_hikashop.order_id');
$orderClass = hikashop_get('class.order');
$order = $orderClass-&gt;loadFullOrder($order_id);
var_dump($order);

}else{
echo $this-&gt;html;

}
$this-&gt;nextButton = false;

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

12 years 7 months ago [\#153100](#153100) by [edocif](/forum/user/30739-edocif "View edocif's Profile")  Replied by *[edocif](/forum/user/30739-edocif "View edocif's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#153100 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

i just want the cart to show thank you for your order and what you would see when you go to the view orders screen and then into the order i.e. hikashop-menu-for-user-control-panel/order/show/cid-11.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MjM1Mi1hZGRpbmctb3JkZXItaW5mb3JtYXRpb24tdG8tYWZ0ZXItZW5kLXBocD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 7 months ago [\#153104](#153104) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding order information to after\_end.php](/forum/27-checkout/862352-adding-order-information-to-after-end-php#153104 "Hello,  I am trying to update the after&#95;end.php and can successfully add text, but I would like to add the order details to the page also.  To see which variables exist, I put the following, but nothing is showing.  I even tried but that too doesn't seem to display anything.  I am currently on Hikashop Business 2.2.1  Thanks.")*

In that case, you should rather redirect the user to that page like that: Code:

$app = JFactory::getApplication(); $order_id = $app-&gt;getUserState('com_hikashop.order_id'); $app-&gt;redirect('http://mywebsite.com/hikashop-menu-for-user-control-panel/order/show/cid-'.$order_id);

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

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