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

#   How to redirect user back to their order page

##

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile") Topic Author
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 10 months ago [\#4912](#4912) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  *[How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4912 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")* was created by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")*

I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered [ www.heatmisersaves.com/my-orders](http://www.heatmisersaves.com/my-orders) as my return URL in the Authorize.net plugin. The help topic says, "Return url : The url you want your users to be redirected to when they finish their payment on the Authorize.net interface. By default, they will be redirected to the after_end page of the checkout process which will thank them for their order."

The HikaShop Configuration help topic for checkout flow says, "The end view always have to be on the last step ALONE."

What is the "after_end" page of the checkout process?

My test users are not getting re-directed as stated in the Return URL help statement and the link from the Authorize.net thank you page returns an error page.

I've noticed there is some configuration on the Authorize.net account. Does the HikaShop plugin over-ride Authorize.net settings?

(Is it normal to be up to 56 test orders while configuring HikaShop and Authorise.net? I've been at this for days) ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ5MTItaG93LXRvLXJlZGlyZWN0LXVzZXItYmFjay10by10aGVpci1vcmRlci1wYWdlP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 10 months ago [\#4913](#4913) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4913 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

Could you give more details ? You say that the thank you page returns an error. What is the error ? What is the link on that page ?

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

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile") Topic Author
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 10 months ago [\#4936](#4936) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4936 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

After the user submits payment on the Authorize.net payment page the folowing message is displayed: Thank you for your purchase.
[ You can go back to the shop by clicking on this link](https://secure.authorize.net/gateway/transact.dll)

That is all that is on the page. The link returns an error:
The following errors have occurred.
(13) The merchant login ID or password is invalid or the account is inactive.

But of course my account is active. Notice the href for the return link is empty in the page source below.
Here is the source: Code:

&lt;div class="hikashop_authorize_thankyou" id="hikashop_authorize_thankyou"&gt; &lt;span id="hikashop_authorize_thankyou_message" class="hikashop_authorize_thankyou_message"&gt; Thank you for your purchase.&lt;br/&gt;&lt;a href=""&gt;You can go back to the shop by clicking on this link&lt;/a&gt; &lt;/span&gt; &lt;/div&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr"&gt; &lt;head&gt; &lt;base href="http://www.heatmisersaves.com/index.php" /&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;meta name="robots" content="index, follow" /&gt; &lt;meta name="keywords" content="y_key=8630ca965f79c29f" /&gt; &lt;meta name="description" content="Home of the HeatMiser�?� Energy Saving Furnace Controller with Adaptive Cycle Management - reduce heating cost - conserve natural gas - conserve fossil fuels - reduce emissions" /&gt; &lt;meta name="generator" content="Joomla! 1.5 - Open Source Content Management" /&gt; &lt;title&gt;HeatMisersaves.com Home of the HeatMiser�?�&lt;/title&gt; &lt;link href="/templates/cloudbase/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt; &lt;link rel="stylesheet" href="/media/com_hikashop/css/frontend_default.css" type="text/css" /&gt; &lt;link rel="stylesheet" href="/media/system/css/modal.css" type="text/css" /&gt; &lt;link rel="stylesheet" href="http://www.heatmisersaves.com/components/com_k2/css/k2.css" type="text/css" /&gt; &lt;script type="text/javascript" src="/media/com_hikashop/js/hikashop.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/media/system/js/mootools.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/media/system/js/modal.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://www.heatmisersaves.com/components/com_k2/js/k2.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; window.addEvent('domready', function() { SqueezeBox.initialize({}); $$('a.modal').each(function(el) { el.addEvent('click', function(e) { new Event(e).stop(); SqueezeBox.fromElement(el); }); }); }); var K2RatingURL = 'http://www.heatmisersaves.com/'; &lt;/script&gt; &lt;link rel="stylesheet" href="http://www.heatmisersaves.com/templates/cloudbase/css/addons.css" type="text/css" /&gt; &lt;link rel="stylesheet" href="http://www.heatmisersaves.com/templates/cloudbase/css/template.css" type="text/css" /&gt; &lt;link rel="stylesheet" href="http://www.heatmisersaves.com/templates/cloudbase/css/print.css" type="text/css" /&gt; &lt;script type="text/javascript"&gt; var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); &lt;/script&gt; &lt;script type="text/javascript"&gt; try { var pageTracker = _gat._getTracker("UA-20461873-1"); pageTracker._trackPageview(); } catch(err) {}&lt;/script&gt; &lt;/head&gt; &lt;body class="contentpane"&gt; &lt;div class="column"&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;

I would like the user to be redirected to [ www.heatmisersaves.com/my-orders](http://www.heatmisersaves.com/my-orders) automatically

Thank you,
Bill

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ5MTItaG93LXRvLXJlZGlyZWN0LXVzZXItYmFjay10by10aGVpci1vcmRlci1wYWdlP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 10 months ago [\#4938](#4938) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4938 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

What did you put in the "return URL" option of the payment plugin ?
It should be [ www.heatmisersaves.com/my-orders](http://www.heatmisersaves.com/my-orders)

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

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile") Topic Author
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 10 months ago [\#4941](#4941) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4941 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

Yes it is. I just double checked.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ5MTItaG93LXRvLXJlZGlyZWN0LXVzZXItYmFjay10by10aGVpci1vcmRlci1wYWdlP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 10 months ago [\#4943](#4943) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4943 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

I have a look at the code and found a possible problem.
Could you replace the code: Code:

$return_url = $method-&gt;payment_params-&gt;return_url;

by Code:

$return_url = $element-&gt;payment_params-&gt;return_url;

in the file plugins/hikashoppayment/authorize.php
and try again ?

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

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile") Topic Author
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 10 months ago [\#4951](#4951) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4951 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

Ok,

That did fix the link but it doesn't automatically redirect after the purchase. Is that normal?

-Bill

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ5MTItaG93LXRvLXJlZGlyZWN0LXVzZXItYmFjay10by10aGVpci1vcmRlci1wYWdlP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 10 months ago [\#4953](#4953) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4953 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

Yes. That's the normal behavior. If you want it to redirect, you can add the code below to the end of the file plugins/hikashoppayment/authorize_thankyou.php

&lt;?php
$doc =&amp; JFactory::getDocument();
$doc-&gt;addScriptDeclaration("window.addEvent('domready', function() {window.location='".$return_url."'});");

Then, you should copy that file in the folder templates/YOUR_TEMPLATE/hikashoppayment so that you will still have that modification after your update.

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

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile") Topic Author
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 10 months ago [\#4955](#4955) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to redirect user back to their order page](/forum/4-how-to/4912-how-to-redirect-user-back-to-their-order-page#4955 "I've been wanting to start this thread for some time now and it is one issue that is keeping me from going live until I fix it. The redirect URL is not working. I have entered...")*

Result!!!!

It works great now. Thank you!!!

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

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