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

#   \[SOLVED\] User registration by Hikashop

##

- **[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")**
- [![alain.roger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5399.png)](/forum/user/5399-alain-roger "View alain.roger's Profile") Topic Author
- [ Offline](/forum/user/5399-alain-roger)

Less More

- Posts: 192
- Thank you received: 1
-
-
- [](http://www.korcule-kolieska.sk)
-

14 years 10 months ago -  14 years 10 months ago [\#36144](#36144) by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")  *[\[SOLVED\] User registration by Hikashop](/forum/4-how-to/36144-solved-user-registration-by-hikashop#36144 "Hi,  i would like to know how can i do to redirect user to hikashop user registration if user made a mistake during user registration ? basically user click on the hikashop user registration menu link and fill the form with every needed data. when he clicks on register button, if there is a mistake, instead of displaying only error message i would like to redirect user to previous form or at least to display it to make user sees what he did wrong.  thx.")* was created by *[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")*

Hi,

i would like to know how can i do to redirect user to hikashop user registration if user made a mistake during user registration ?
basically user click on the hikashop user registration menu link and fill the form with every needed data.
when he clicks on register button, if there is a mistake, instead of displaying only error message i would like to redirect user to previous form or at least to display it to make user sees what he did wrong.

thx.

---

*What does not kill you, makes you stronger.*

Last edit: 14 years 10 months ago by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2MTQ0LXNvbHZlZC11c2VyLXJlZ2lzdHJhdGlvbi1ieS1oaWthc2hvcD90bXBsPW1hcmtkb3du) 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: 86580
- Thank you received: 14322
-
-

14 years 10 months ago [\#36188](#36188) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: User registration by Hikashop](/forum/4-how-to/36144-solved-user-registration-by-hikashop#36188 "Hi,  i would like to know how can i do to redirect user to hikashop user registration if user made a mistake during user registration ? basically user click on the hikashop user registration menu link and fill the form with every needed data. when he clicks on register button, if there is a mistake, instead of displaying only error message i would like to redirect user to previous form or at least to display it to make user sees what he did wrong.  thx.")*

Hi,

To do that, you need to change the code: Code:

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)); } JRequest::setVar( 'layout', 'after_register' ); return parent::display(); }

to: Code:

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)); JRequest::setVar( 'layout', 'after_register' ); return parent::display(); } $this-&gt;form(); }

in the file components/com_hikashop/controllers/user.php

We'll add that to next release as it makes sense.

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

- **[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")**
- [![alain.roger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5399.png)](/forum/user/5399-alain-roger "View alain.roger's Profile") Topic Author
- [ Offline](/forum/user/5399-alain-roger)

Less More

- Posts: 192
- Thank you received: 1
-
-
- [](http://www.korcule-kolieska.sk)
-

14 years 10 months ago [\#36196](#36196) by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")  Replied by *[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")* on topic *[Re: User registration by Hikashop](/forum/4-how-to/36144-solved-user-registration-by-hikashop#36196 "Hi,  i would like to know how can i do to redirect user to hikashop user registration if user made a mistake during user registration ? basically user click on the hikashop user registration menu link and fill the form with every needed data. when he clicks on register button, if there is a mistake, instead of displaying only error message i would like to redirect user to previous form or at least to display it to make user sees what he did wrong.  thx.")*

thank a lot, it works well.

---

*What does not kill you, makes you stronger.*

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

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