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

#   SEF url for call to after\_end.php

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 11 months ago [\#224993](#224993) by [rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")  *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#224993 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")* was created by *[rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")*

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37

Hi,

In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after_end.php file is loaded.

$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 above causes a url similar to the following:

http://www.&lt;mysite&gt;.com/index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id=183&amp;Itemid=271

Is it possible to generate a SEF url instead?

Thanks in advance for your help.

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

10 years 11 months ago [\#225034](#225034) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#225034 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")*

Hi,

Sure but why would that be necessary ?
The SE in SEF is for "Search Engine" right ?
That URL will never be indexed by search engines since they can't do a checkout.
So there is not really a point in SEFing it.
And normally, if you want to redirect the customer to another URL than this one, you would simply enter the URL you want in the "return URL" setting of your payment method in the backend.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 11 months ago [\#225046](#225046) by [rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")  Replied by *[rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")* on topic *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#225046 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")*

Hi,

Thanks for your reply. I perfectly understand what you mean. I just want the url that the user sees to look more neat. More importantly, I would like to avoid "com_hikahop" to reflect in the url.

Thanks again for your help.

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

10 years 11 months ago [\#225055](#225055) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#225055 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")*

Hi,

So as Nicolas said, you can edit the "return URL" setting of your payment method in the backend in order to set a sef url.
That way the customers will only see a clean and sef url ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 11 months ago [\#225074](#225074) by [rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")  Replied by *[rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")* on topic *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#225074 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")*

Thanks again for getting back to me. I am aware of being able to set a Return URL in the Paypal plugin with a SEF URL but my need is slightly different. I am using the after_end.php file to not only display the "Order Confirmed" message but also to dynamically generate a link to the associated invoice.

Excuse my ignorance, if any, but the need to generate this link means I need to load a PHP file from the server instead of using a static Joomla article as my "Order Confirmed" page. I don't know how to generate a SEF URL to call the after_end.php (or any other PHP file for that matter) and would appreciate your help in doing so.

Thanks again for your patience.

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

10 years 11 months ago -  10 years 11 months ago [\#225075](#225075) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#225075 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")*

Hi,

And sorry for jumping in, but if nothing else works, there's always [ NoNumber's "Sourcerer"](https://www.nonumber.nl/extensions/sourcerer), allowing you to insert PHP and other code in otherwise 'static' content such as Joomla articles.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

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

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 11 months ago [\#225077](#225077) by [rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")  Replied by *[rdpaul](/forum/user/36291-rdpaul "View rdpaul's Profile")* on topic *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#225077 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")*

Thanks for chipping in. Am hoping that the Hikashop team will have something to add....if not, then I guess I will have to live with the non-SEF URL or look at the NoNumber extension suggested by you.

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

10 years 11 months ago [\#225100](#225100) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SEF url for call to after\_end.php](/forum/27-checkout/881254-sef-url-for-call-to-after-end-php#225100 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37  Hi,  In the paypal.php file of the Paypal plugin, the following line causes a non-SEF url to display when the after&#95;end.php file is loaded.  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id . $this-&gt;url&#95;itemid;  The above causes a url similar to the following:  http://www..com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id=183&amp;Itemid=271  Is it possible to generate a SEF url instead?  Thanks in advance for your help.")*

I don't see the point, but if you really want to, change the line:
$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;
to:
$return_url = hikashop_completeLink('checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid);

and that should do it.

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

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