Skip to main content

[SOLVED] User registration by Hikashop

More
14 years 8 months ago - 14 years 8 months ago #36144 by alain.roger
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 8 months ago by alain.roger.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36188 by nicolas
Hi,

To do that, you need to change the code:
Code:
function register(){ $class = hikashop_get('class.user'); $status = $class->register($this,'user'); if($status){ $app=&JFactory::getApplication(); $app->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->register($this,'user'); if($status){ $app=&JFactory::getApplication(); $app->enqueueMessage(JText::sprintf('THANK_YOU_FOR_REGISTERING',HIKASHOP_LIVE)); JRequest::setVar( 'layout', 'after_register' ); return parent::display(); } $this->form(); }
in the file components/com_hikashop/controllers/user.php

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

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36196 by alain.roger
thank a lot, it works well.

What does not kill you, makes you stronger.

Please Log in or Create an account to join the conversation.

Time to create page: 0.194 seconds
Powered by Kunena Forum