[SOLVED] User registration by Hikashop
- alain.roger
-
Topic Author
- Offline
Less
More
14 years 8 months ago - 14 years 8 months ago #36144
by alain.roger
What does not kill you, makes you stronger.
[SOLVED] User registration by Hikashop was created 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.
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.
14 years 8 months ago #36188
by nicolas
Replied by nicolas on topic Re: User registration by Hikashop
Hi,
To do that, you need to change the code:
to:
in the file components/com_hikashop/controllers/user.php
We'll add that to next release as it makes sense.
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();
}
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();
}
We'll add that to next release as it makes sense.
Please Log in or Create an account to join the conversation.
- alain.roger
-
Topic Author
- Offline
14 years 8 months ago #36196
by alain.roger
What does not kill you, makes you stronger.
Replied by alain.roger on topic Re: User registration by Hikashop
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