Sorry, what would be nice to have is a way to specify to Hikashop where to redirect after registration.
I used an override for the after_register.php file, I ask:
$user = JFactory::getUser();
global $Itemid;
if ($user -> guest) {
$app = &JFactory::getApplication();
$app -> enqueueMessage(JText::_('PLEASE_LOGIN_FIRST'));
$url = '';
if (!empty($Itemid)) {
$url = '&Itemid=' . $Itemid;
}
if (version_compare(JVERSION, '1.6', '<')) {
$url = 'index.php?option=com_user&view=login' . $url;
} else {
$url = 'index.php?option=com_users&view=login' . $url;
}
$app -> redirect(JRoute::_($url . '&return=' . urlencode(base64_encode(hikashop_currentUrl())), false));
return false;
}
$app -> redirect(JRoute::_('index.php?option=com_hikashop&view=user&layout=cpanel&Itemid='.$Itemid), false);
return false;
because I don't want the user to land in a white page with only a message.
But now I get a Joomla Warning right after I Login the FIRST time after registration: Please enter your name.
screencast.com/t/kd1d4jvbAH
It comes from: JLIB_DATABASE_ERROR_PLEASE_ENTER_YOUR_NAME.
It does the same if I use:
JRequest::setVar( 'layout', 'cpanel' );
return parent::display();
At the end of the php in that file.
I'm using: Simple register with Password and Joomla is set to No Activation Required.