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

#   Re: Redirect after registration

##

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

Less More

- Posts: 31
- Thank you received: 2
-
-

15 years 3 months ago [\#21562](#21562) by [smedia](/forum/user/2063-smedia "View smedia's Profile")  *[Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21562 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")* was created by *[smedia](/forum/user/2063-smedia "View smedia's Profile")*

Hello,

If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?

Greetings,

Dizma

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 3 months ago [\#21567](#21567) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21567 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

Hi,

you need to add the code:
$app-&gt;redirect('[ www.mywebsite.com/myURL](http://www.mywebsite.com/myURL)');
after the code:
$app-&gt;enqueueMessage(JText::sprintf('THANK_YOU_FOR_REGISTERING',HIKASHOP_LIVE));
in the file components/com_hikashop/controllers/user.php

We'll change a bit the system in next release so that you will be able to add the redirect in a view and avoid changing a core file of HikaShop (that way you will be able to update without having to reapply your changes).

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

15 years 3 months ago [\#21621](#21621) by [smedia](/forum/user/2063-smedia "View smedia's Profile")  Replied by *[smedia](/forum/user/2063-smedia "View smedia's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21621 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

Hello,

I added youre code to the designated user.php file after the code you mentioned but it doesnt work. After registering I still see an empty page. Isnt It strange that I dont even see a string of code configurated in the language file? The url to page looks like this:
[ www.myurl.com/index.php/registreer/check...ctivate\_page/lang-nl](http://www.myurl.com/index.php/registreer/checkout/activate_page/lang-nl)
Whats going wrong here?

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 3 months ago [\#21642](#21642) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21642 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

It's probably because the URL you put in the code is not valid or that the page there is not ok. On the link you gave, I can see that you have an iframe with the URL:
tg.php?uid=www4e26b2a1390a20.55891913&amp;src=&amp;cat=computers%2Finternet%2Fdownloads&amp;kw=Domain+Names&amp;sc=internet
However, the URL of the page is [ www.myurl.com/index.php/registreer/check...ctivate\_page/lang-nl](http://www.myurl.com/index.php/registreer/checkout/activate_page/lang-nl)
So the iframe URL becomes: [ www.myurl.com/index.php/registreer/check...in+Names&amp;sc=internet](http://www.myurl.com/index.php/registreer/checkout/activate_page/lang-nl/tg.php?uid=www4e26b2a1390a20.55891913&src=&cat=computers%2Finternet%2Fdownloads&kw=Domain+Names&sc=internet)
which is not valid and cannot be loaded.
Your iframe URL should be absolute.

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

15 years 3 months ago -  15 years 3 months ago [\#21644](#21644) by [smedia](/forum/user/2063-smedia "View smedia's Profile")  Replied by *[smedia](/forum/user/2063-smedia "View smedia's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21644 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

Sorry, I dont get it.
The code displayed in my last reply is the code where Hikashop sends me whitout the piece of script added. So the original file in the original setting.

Last edit: 15 years 3 months ago by [smedia](/forum/user/2063-smedia "View smedia's Profile").

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 3 months ago [\#21647](#21647) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21647 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

Nevermind my previous post... I clicked on the URL you gave and didn't look at the domain name and though that it was a page of your website not working...

If the page [ www.myurl.com/index.php/registreer/check...ctivate\_page/lang-nl](http://www.myurl.com/index.php/registreer/checkout/activate_page/lang-nl) is blank, it's because your template is missing some code in order to display the messages:
[ www.hikashop.com/support/documentation/6...issues.html#messages](http://www.hikashop.com/support/documentation/61-hikashop-compatibility-issues.html#messages)

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

15 years 3 months ago -  15 years 3 months ago [\#21673](#21673) by [smedia](/forum/user/2063-smedia "View smedia's Profile")  Replied by *[smedia](/forum/user/2063-smedia "View smedia's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21673 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

Ah, thats the trick for the standard message after login ![:)](/media/kunena/emoticons/8.png ":)")
Very nice!

But still, I,d like to redirect to a page with my own design.
This is the code I put in.

$app-&gt;enqueueMessage(JText::sprintf('THANK_YOU_FOR_REGISTERING',HIKASHOP_LIVE));
**$app-&gt;redirect('[ www.myurl.nl/index.php?option=com\_conten...ry&amp;layout=blog&amp;id=23](http://www.myurl.nl/index.php?option=com_content&view=category&layout=blog&id=23)');**
...

Am I doing something wrong here. I also tried it with http:// in front of the url.

Last edit: 15 years 3 months ago by [smedia](/forum/user/2063-smedia "View smedia's Profile").

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 3 months ago [\#21680](#21680) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21680 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

That's not the code you should change.
You should add your redirect in the file administrator/components/com_hikashop/classes/user.php instead of the code:
$app-&gt;redirect(hikashop_completeLink('checkout&amp;task=activate_page&amp;lang='.$locale,false,true));
And you should put the http://

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

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

Less More

- Posts: 31
- Thank you received: 2
-
-

15 years 3 months ago [\#21693](#21693) by [smedia](/forum/user/2063-smedia "View smedia's Profile")  Replied by *[smedia](/forum/user/2063-smedia "View smedia's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#21693 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

This is exactly what I mean ![:)](/media/kunena/emoticons/8.png ":)")

Thnx, for the help!

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

- **[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")**
- [![ler@singmuiheng.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")
- [ Offline](/forum/user/3330-ler-singmuiheng-com)

Less More

- Posts: 575
- Thank you received: 11
-
-

4 years 6 months ago [\#340946](#340946) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#340946 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

is there new method to control this after 10 years?

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

4 years 6 months ago [\#340951](#340951) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Redirect after registration](/forum/2-general-talk-about-hikashop/21562-re-redirect-after-registration#340951 "Hello,  If I register to my Hikashop I get redirected to an empty page. How can I adjust this? You mentioned earlier to me that I have to adjust the script of the file user.php. But I, being a php noob,dont know where to put the redirect script in the file. Can you show me where to place this code?  Greetings,  Dizma")*

Hi,

Well, first what exactly do you want to control ?
Normally, HikaShop's registration is used mainly on the checkout. And thus, after the registration on the checkout, the user goes back to the checkout. So there should be no need to change anything to that.
The only case where this might be needed is if you're talking about the HikaShop registration form page.
After the registration there, the system displayed the "after_register" view file of HikaShop with a text "Thank you for your registration".
If you want to change that, there are several ways:
- You could simply do a translation override of that text if you want to change the text:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)
- You could edit the file user / after_register via the menu Display&gt;Views to add the text you want to that view file.
- You could also add a redirect to somewhere else in that same view file. For example: Code:

&lt;?php JFactory::getApplication()-&gt;redirect('XXX'); ?&gt;

where XXX is the URL of the page you want to display to the user after the registration from the HikaShop registration form page.

Finally, note that if you're using Joomla's registration form page, all this won't apply to it as this is controlled by Joomla, not HikaShop.

The following user(s) said Thank You: [Kittisak112](/forum/user/60983-kittisak112 "View Kittisak112's Profile")

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

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

[](#top)
