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

#   checkout results displayed on the home menu

##

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

Less More

- Posts: 145
- Thank you received: 6
-
-

4 years 11 months ago [\#338278](#338278) by [levelup](/forum/user/61801-levelup "View levelup's Profile")  *[checkout results displayed on the home menu](/forum/27-checkout/903742-checkout-results-displayed-on-the-home-menu#338278 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chorom  Hi Why checkout results displayed on the home menu even though I have created a checkout menu?  &#91;SITENAME&#93;/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=37&amp;order&#95;token=iPjxtJBx")* was created by *[levelup](/forum/user/61801-levelup "View levelup's Profile")*

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 4.0.5
-- PHP version -- : 7.4
-- Browser(s) name and version -- : chorom

Hi
Why checkout results displayed on the home menu even though I have created a checkout menu?

[SITENAME]/index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id=37&amp;order_token=iPjxtJBx

---

Life is the unique stage of our art. Everyone sings their own song and leaves the stage. The stage is always permanent. Blessed is that song that people remember.

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

4 years 10 months ago [\#338282](#338282) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[checkout results displayed on the home menu](/forum/27-checkout/903742-checkout-results-displayed-on-the-home-menu#338282 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chorom  Hi Why checkout results displayed on the home menu even though I have created a checkout menu?  &#91;SITENAME&#93;/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=37&amp;order&#95;token=iPjxtJBx")*

Hi,

That's because the Itemid parameter is missing for that after_end URL.
Normally, this parameter is added to the URL by the payment plugin.
For example, in the file plugins/hikashoppayment/paypal/paypal.php in the function onAfterOrderConfirm, you have this line of code to generate the after_end URL: Code:

$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid;

The payment plugin you're using must be missing the code to add the $this-&gt;url_itemid to the URL.
And without the Itemid parameter in the URL Joomla doesn't know which menu item to use to display the page and uses the default one.

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

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

Less More

- Posts: 145
- Thank you received: 6
-
-

4 years 11 months ago -  4 years 10 months ago [\#338295](#338295) by [levelup](/forum/user/61801-levelup "View levelup's Profile")  Replied by *[levelup](/forum/user/61801-levelup "View levelup's Profile")* on topic *[checkout results displayed on the home menu](/forum/27-checkout/903742-checkout-results-displayed-on-the-home-menu#338295 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chorom  Hi Why checkout results displayed on the home menu even though I have created a checkout menu?  &#91;SITENAME&#93;/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=37&amp;order&#95;token=iPjxtJBx")*

> nicolas wrote: Hi,
>
> Code:
>
> $return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid;

The script you wrote already exists.
I think this problem is due to HikaShop settings.
In previous versions of HikaShop in System &gt; Configuration &gt; Advanced &gt; LEGACY SETTINGS
There is a Checkout legacy field. But it is not available in Hika Shop 4.4.4.

On line 11 of the route
components \ com_hikashop \ views \ checkout \ view.html.php
Checks these settings but is not in the adnanced settings.

---

Life is the unique stage of our art. Everyone sings their own song and leaves the stage. The stage is always permanent. Blessed is that song that people remember.

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

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

4 years 10 months ago [\#338308](#338308) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[checkout results displayed on the home menu](/forum/27-checkout/903742-checkout-results-displayed-on-the-home-menu#338308 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chorom  Hi Why checkout results displayed on the home menu even though I have created a checkout menu?  &#91;SITENAME&#93;/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=37&amp;order&#95;token=iPjxtJBx")*

Hi,

The checkout legacy setting has been removed from HikaShop since the support of Joomla 4 was added as the legacy checkout cannot work with Joomla 4.
The problem is not there.
As I said, it's the payment plugin which generates the URL /index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id=37&amp;order_token=iPjxtJBx
If the Itemid parameter is missing from there, and if the code I talked about is in the payment plugin you're using, then the problem is that the Itemid information is missing when the payment plugin is generating the URL.
Which payment plugin are you using ? How is it configured ?
What did you configure in the "force a menu on checkout" setting of the HikaShop configuration ? (I would recommend to select a menu item of the type "hikashop checkout" in there, that might even help your situation to do that if it's not already the case)
Could you provide a link to the shop so that we could check your checkout ?

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

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

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

Less More

- Posts: 145
- Thank you received: 6
-
-

4 years 10 months ago [\#338325](#338325) by [levelup](/forum/user/61801-levelup "View levelup's Profile")  Replied by *[levelup](/forum/user/61801-levelup "View levelup's Profile")* on topic *[checkout results displayed on the home menu](/forum/27-checkout/903742-checkout-results-displayed-on-the-home-menu#338325 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chorom  Hi Why checkout results displayed on the home menu even though I have created a checkout menu?  &#91;SITENAME&#93;/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=37&amp;order&#95;token=iPjxtJBx")*

Hi
i use Zarinpal payment plugin.
"force a menu on checkout" setting is on hikashop checkout menu item.
link to shop: musicalgiftbox.ir
user : masoud
password: masoud#nicksefat
i enable test payment for now.
source code are attached

---

Life is the unique stage of our art. Everyone sings their own song and leaves the stage. The stage is always permanent. Blessed is that song that people remember.

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

4 years 10 months ago [\#338331](#338331) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[checkout results displayed on the home menu](/forum/27-checkout/903742-checkout-results-displayed-on-the-home-menu#338331 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 4.0.5 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chorom  Hi Why checkout results displayed on the home menu even though I have created a checkout menu?  &#91;SITENAME&#93;/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=37&amp;order&#95;token=iPjxtJBx")*

Hi,

The problem is in the code of the plugin.
It is generating the URL in onPaymentNotification. There $this-&gt;url_itemid is not available.
It's only available in onAfterOrderConfirm.
Replacing the line: Code:

$returnUrl = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid;

by:
Code:

$returnUrl = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . '&amp;Itemid='.@$_REQUEST['Itemid'];

should fix the problem.

However, the best is to report the issue to the developer of the payment plugin so that it can check on the issue, integrate the fix and thouroughly test it on his end.
I've posted the issue on github so that the developer can check this thread:
[ github.com/ZarinPal-Lab/Joomla-HikaShop/issues/5](https://github.com/ZarinPal-Lab/Joomla-HikaShop/issues/5)

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

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

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