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

#   Redirect to specific page after user registers

##

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

Less More

- Posts: 49
- Thank you received: 2
-
-

15 years 5 months ago [\#18218](#18218) by [robjen](/forum/user/2831-robjen "View robjen's Profile")  *[Redirect to specific page after user registers](/forum/4-how-to/18218-redirect-to-specific-page-after-user-registers#18218 "Hello,  After a user registers I would like to be able to send them to the product page, where they can continue their purchase.  At the moment, after a user registers they are taken to a page that is blank - has no content - except for the system message thanking them for registering.  Below that message is an unfriendly and confusing white space.  I would like that message to appear on a product page where they can continue with their purchase.  Would appreciate your help on how to do that.  Kind regards, Robin")* was created by *[robjen](/forum/user/2831-robjen "View robjen's Profile")*

Hello,

After a user registers I would like to be able to send them to the product page, where they can continue their purchase.

At the moment, after a user registers they are taken to a page that is blank - has no content - except for the system message thanking them for registering.

Below that message is an unfriendly and confusing white space.

I would like that message to appear on a product page where they can continue with their purchase.

Would appreciate your help on how to do that.

Kind regards,
Robin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4MjE4LXJlZGlyZWN0LXRvLXNwZWNpZmljLXBhZ2UtYWZ0ZXItdXNlci1yZWdpc3RlcnM/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: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18219](#18219) 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 to specific page after user registers](/forum/4-how-to/18218-redirect-to-specific-page-after-user-registers#18219 "Hello,  After a user registers I would like to be able to send them to the product page, where they can continue their purchase.  At the moment, after a user registers they are taken to a page that is blank - has no content - except for the system message thanking them for registering.  Below that message is an unfriendly and confusing white space.  I would like that message to appear on a product page where they can continue with their purchase.  Would appreciate your help on how to do that.  Kind regards, Robin")*

Hi,

You can edit the file components/com_hikashop/controllers/user.php and change the function register to add a redirect to where you want.

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

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

Less More

- Posts: 49
- Thank you received: 2
-
-

15 years 5 months ago [\#18316](#18316) by [robjen](/forum/user/2831-robjen "View robjen's Profile")  Replied by *[robjen](/forum/user/2831-robjen "View robjen's Profile")* on topic *[Re: Redirect to specific page after user registers](/forum/4-how-to/18218-redirect-to-specific-page-after-user-registers#18316 "Hello,  After a user registers I would like to be able to send them to the product page, where they can continue their purchase.  At the moment, after a user registers they are taken to a page that is blank - has no content - except for the system message thanking them for registering.  Below that message is an unfriendly and confusing white space.  I would like that message to appear on a product page where they can continue with their purchase.  Would appreciate your help on how to do that.  Kind regards, Robin")*

Hello Nicolas,

I'm not too good at PHP coding - I tried a number of things but can't get it to work.

This is probably the code block you are referring to. I tried adding a line below the second $app line using redirect code that was further down in the block and changing it to suit. But no luck.

}
function register(){
$class = hikashop::get('class.user');
$status = $class-&gt;register($this,'user');
if($status){
$app=&amp;JFactory::getApplication();
$app-&gt;enqueueMessage(JText::sprintf('THANK_YOU_FOR_REGISTERING',HIKASHOP_LIVE));

}
return true;

Would you mind adding the correct code for me so that the user (after registering) can be taken to a page named 'Products'.

Your help is appreciated.

Kind regards,
Robin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4MjE4LXJlZGlyZWN0LXRvLXNwZWNpZmljLXBhZ2UtYWZ0ZXItdXNlci1yZWdpc3RlcnM/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: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18319](#18319) 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 to specific page after user registers](/forum/4-how-to/18218-redirect-to-specific-page-after-user-registers#18319 "Hello,  After a user registers I would like to be able to send them to the product page, where they can continue their purchase.  At the moment, after a user registers they are taken to a page that is blank - has no content - except for the system message thanking them for registering.  Below that message is an unfriendly and confusing white space.  I would like that message to appear on a product page where they can continue with their purchase.  Would appreciate your help on how to do that.  Kind regards, Robin")*

That's indeed what you should do. Add the line below after the enqueueMessage line :
$app-&gt;redirect('[ mywebsite.com/my\_link](http://mywebsite.com/my_link)');

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

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

Less More

- Posts: 49
- Thank you received: 2
-
-

15 years 5 months ago [\#18322](#18322) by [robjen](/forum/user/2831-robjen "View robjen's Profile")  Replied by *[robjen](/forum/user/2831-robjen "View robjen's Profile")* on topic *[Re: Redirect to specific page after user registers](/forum/4-how-to/18218-redirect-to-specific-page-after-user-registers#18322 "Hello,  After a user registers I would like to be able to send them to the product page, where they can continue their purchase.  At the moment, after a user registers they are taken to a page that is blank - has no content - except for the system message thanking them for registering.  Below that message is an unfriendly and confusing white space.  I would like that message to appear on a product page where they can continue with their purchase.  Would appreciate your help on how to do that.  Kind regards, Robin")*

Hello Nicolas,

That solved the problem. It looks so easy when you know how. Thanks for your help.

I'm sure I'll be back again looking for another answer to something.

Kind regards,
Robin

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

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