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

#   Redirect after purchase order

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

11 years 6 months ago -  11 years 6 months ago [\#200243](#200243) by [saardvark](/forum/user/35633-saardvark "View saardvark's Profile")  *[Redirect after purchase order](/forum/29-payment-methods/876673-redirect-after-purchase-order#200243 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome latest -- Error-message(debug-mod must be tuned on) -- : none  The template has code to do a redirect after a purchase order is used, but the option seems to be missing in the UI.  purchaseorder&#95;end.php:  So I added the variable in, but this is a really slow redirect. Something like this might work better:")* was created by *[saardvark](/forum/user/35633-saardvark "View saardvark's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome latest
-- Error-message(debug-mod must be tuned on) -- : none

The template has code to do a redirect after a purchase order is used, but the option seems to be missing in the UI.

purchaseorder_end.php: Code:

if(!empty($this-&gt;payment_params-&gt;return_url)){ $doc = JFactory::getDocument(); $doc-&gt;addScriptDeclaration("window.addEvent('domready', function() {window.location='".$this-&gt;payment_params-&gt;return_url."'});");

So I added the variable in, but this is a really slow redirect. Something like this might work better: Code:

if(!empty($this-&gt;payment_params-&gt;return_url)){ header("Location: {$this-&gt;payment_params-&gt;return_url}"); }

Last edit: 11 years 6 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile"). Reason: Added the "code" tag

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 6 months ago [\#200280](#200280) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Redirect after purchase order](/forum/29-payment-methods/876673-redirect-after-purchase-order#200280 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome latest -- Error-message(debug-mod must be tuned on) -- : none  The template has code to do a redirect after a purchase order is used, but the option seems to be missing in the UI.  purchaseorder&#95;end.php:  So I added the variable in, but this is a really slow redirect. Something like this might work better:")*

Hello,
Note that you can also use that kind of PHP code : Code:

$app = JFactory::getApplication(); $app-&gt;redirect('YourLink');

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

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