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

#   Checkout after\_end order token missing

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 3 months ago [\#297093](#297093) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#297093 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

-- HikaShop version -- : [1808090926

Hi,

I have been customizing after_end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...

To be sure i also tried with default protostar template and received same issue.

Here is the screenshot of default after_end.php message with no order token as you can see so user can't access hes order after checkout....

[ ![order&#95;2018-08-24.png](/forum/attachment/44617) ](/forum/attachment/44617 "...2018-08-24.png")

I also have tried with older hikashop version "HikaShop Business 3.4.0 [1803271422]" and it works fine....

What is the issue?

Kind Regards

- [ ![order&#95;2018-08-24.png](/forum/attachment/44617) ](/forum/attachment/44617 "...2018-08-24.png") [ ](/forum/attachment/44617?download=1 "...2018-08-24.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTU3MS1jaGVja291dC1hZnRlci1lbmQtb3JkZXItdG9rZW4tbWlzc2luZz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

8 years 3 months ago [\#297095](#297095) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#297095 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")*

Hi,

Indeed, thanks for your feedback.
I've added a patch for that. Download again the install package and install it on yours and you should get the patch for it.

The following user(s) said Thank You: [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 3 months ago [\#297125](#297125) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#297125 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")*

Hi,

Thank you Nicolas. It works fine now.

Regards

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 3 weeks ago [\#312839](#312839) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#312839 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")*

Hi,

Not sure what happened but it seems that the issue is back. No order token for guest users and $this-&gt;order returns NULL if user is not logged in.

You will find build number in image attached.

[ ![error&#95;2019-11-05.png](/forum/attachment/48095) ](/forum/attachment/48095 "...2019-11-05.png")

Thanks

- [ ![error&#95;2019-11-05.png](/forum/attachment/48095) ](/forum/attachment/48095 "...2019-11-05.png") [ ](/forum/attachment/48095?download=1 "...2019-11-05.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTU3MS1jaGVja291dC1hZnRlci1lbmQtb3JkZXItdG9rZW4tbWlzc2luZz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

7 years 3 weeks ago [\#312869](#312869) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#312869 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")*

Hi,

I'm not able to reproduce the problem. Which payment method are you using ?
What is the URL of the thank you page you get ?

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 3 weeks ago [\#312872](#312872) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#312872 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")*

Hi,

The url looks like this "index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id=46"

I am using paysera payment method which you can download from here: [ support.paysera.com/index.php?/Knowledge...cle/View/90/0/joomla](https://support.paysera.com/index.php?/Knowledgebase/Article/View/90/0/joomla)

I also tried with protostar template and same issue.

Hope this helps a bit.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTU3MS1jaGVja291dC1hZnRlci1lbmQtb3JkZXItdG9rZW4tbWlzc2luZz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

7 years 3 weeks ago [\#312876](#312876) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#312876 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")*

Hi,

After the code: Code:

.'&amp;orderID=' .$order-&gt;order_id

add the code: Code:

.'&amp;order_token=' .$order-&gt;order_token

in the code of the plugin and that should help.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 3 weeks ago [\#312903](#312903) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Checkout after\_end order token missing](/forum/27-checkout/895571-checkout-after-end-order-token-missing#312903 "-- HikaShop version -- : &#91;1808090926  Hi,  I have been customizing after&#95;end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this-&gt;order returns NULL if user is not logged in...  To be sure i also tried with default protostar template and received same issue.  Here is the screenshot of default after&#95;end.php message with no order token as you can see so user can't access hes order after checkout....  I also have tried with older hikashop version &quot;HikaShop Business 3.4.0 &#91;1803271422&#93;&quot; and it works fine....  What is the issue?  Kind Regards")*

Hi,

At first i thought it was related to Hikashop. My bad.

The fix you provided didn't work so i used the older plugin and it is working fine with it.

So the issue is with the new plugin...

Thanks

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

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