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

#   No sef url for thank you page after purchase

##

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

Less More

- Posts: 347
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

4 years 1 month ago -  4 years 1 month ago [\#345370](#345370) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  *[No sef url for thank you page after purchase](/forum/27-checkout/905125-no-sef-url-for-thank-you-page-after-purchase#345370 "-- url of the page with the problem -- :   takaroo.nl/  -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1.10  Hi, I've setup a thank you page in an article and made a hidden menu for it, this worked very nice in the past.  In the payment method I use (RoPayments we can select what to do after a successful payment, I selected that it should go to that article.  As a result it is showing the article content but it's not using the SEF url. Instead it comes with something that looks like this :  (on the test site)   takaroo.dlidev.nl/nl/?option=com&#95;hikasho...7LySbXQAsLJhJLzLFNOP  Roland gave me the tip to ask for something that would trigger onHikashopAfterDisplayView but that seems not to happen.  Any idea how to get the nice url after a successful pay of an order?")* was created by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")*

-- url of the page with the problem -- : [ takaroo.nl/](https://takaroo.nl/)
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.3
-- PHP version -- : 8.1.10

Hi,
I've setup a thank you page in an article and made a hidden menu for it, this worked very nice in the past.

In the payment method I use (RoPayments we can select what to do after a successful payment, I selected that it should go to that article.

As a result it is showing the article content but it's not using the SEF url. Instead it comes with something that looks like this :

(on the test site)
[ takaroo.dlidev.nl/nl/?option=com\_hikasho...7LySbXQAsLJhJLzLFNOP](https://takaroo.dlidev.nl/nl/?option=com_hikashop&ctrl=checkout&task=after_end&order_id=39&order_token=tuPn3Nhb&Itemid=199&transactionId=mollie_633ae8ff0bd9a&pid=P0Okd0nZzIngryaua3RWVfufNIojzd7LySbXQAsLJhJLzLFNOP)

Roland gave me the tip to ask for something that would trigger onHikashopAfterDisplayView but that seems not to happen.

Any idea how to get the nice url after a successful pay of an order?

Last edit: 4 years 1 month ago by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile"). Reason: solved

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNTEyNS1uby1zZWYtdXJsLWZvci10aGFuay15b3UtcGFnZS1hZnRlci1wdXJjaGFzZT90bXBsPW1hcmtkb3du) 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 1 month ago [\#345423](#345423) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No sef url for thank you page after purchase](/forum/27-checkout/905125-no-sef-url-for-thank-you-page-after-purchase#345423 "-- url of the page with the problem -- :   takaroo.nl/  -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1.10  Hi, I've setup a thank you page in an article and made a hidden menu for it, this worked very nice in the past.  In the payment method I use (RoPayments we can select what to do after a successful payment, I selected that it should go to that article.  As a result it is showing the article content but it's not using the SEF url. Instead it comes with something that looks like this :  (on the test site)   takaroo.dlidev.nl/nl/?option=com&#95;hikasho...7LySbXQAsLJhJLzLFNOP  Roland gave me the tip to ask for something that would trigger onHikashopAfterDisplayView but that seems not to happen.  Any idea how to get the nice url after a successful pay of an order?")*

Hi,

The after_end URL you have is the URL payment plugins usually provide to the payment gateway for the customer to come back to the website. When HikaShop process that URL it does several things:
- it clears the cart
- it checks that the payment method selected for the order has a "return_url" parameter (this is usually specified in the "pluginConfig" attribute of the class of the plugin so the merchant can enter a "Return URL" when configuring the payment method in HikaShop). If it has that parameter, HikaShop will redirect to that return URL.
- If the user was not redirected because the payment plugin didn't have a return_url set, HikaShop displays the default thank you page of HikaShop, like you have on that link.

So there are several ways to tackle this:
- the payment plugin could implement the return_url parameter and you would just include the URL of the Joomla article in that setting, like for any other payment plugin
- the payment plugin could implement the onHikashopBeforeDisplayView or onHikashopAfterDisplayView and check the ctrl parameter of the URL to then redirect to wherever he wants
- you could make your own view override of the after_end view file via the menu Display&gt;Views and manually add the redirect to the URL you want there. It's quite easy as it's just one line: Code:

&lt;?php JFactory::getApplication()-&gt;redirect('http://mywebsite.com/my/thank/you/page'); ?&gt;

I would recommend method one or two, but both need to be implemented in the payment plugin, and thus by Roland, the developer.

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

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

Less More

- Posts: 347
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

4 years 1 month ago [\#345476](#345476) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  Replied by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")* on topic *[No sef url for thank you page after purchase](/forum/27-checkout/905125-no-sef-url-for-thank-you-page-after-purchase#345476 "-- url of the page with the problem -- :   takaroo.nl/  -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1.10  Hi, I've setup a thank you page in an article and made a hidden menu for it, this worked very nice in the past.  In the payment method I use (RoPayments we can select what to do after a successful payment, I selected that it should go to that article.  As a result it is showing the article content but it's not using the SEF url. Instead it comes with something that looks like this :  (on the test site)   takaroo.dlidev.nl/nl/?option=com&#95;hikasho...7LySbXQAsLJhJLzLFNOP  Roland gave me the tip to ask for something that would trigger onHikashopAfterDisplayView but that seems not to happen.  Any idea how to get the nice url after a successful pay of an order?")*

Hi Nicolas,

After some debugging by Roland heb found something.
He fixed it in my site and will add a fix in the next release of ROPayments.

Thanks for the reply.
Nico

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

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

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