I know that Joomla does not auto login.
But hikashhop does, when registering during the checkout process.
I would like to have the same code executed for "normal" registering like it is when registering during checkout.
Where should i add the code for this ? In after_register file from hikashop ?
It should not interfere with hikashop.
So hikashop registration should be fully finished (incl. adding address and custom fields etc.)
I tried wit an autologin plugin, but then the adress and custom fields were not added.
Can you tell me, where I should add code, so that it will notinterfere with hikashop.
I would like to add something like:
function autoLogin($user,$isnew){
$app = JFactory::getApplication();
if($app->isSite() && $isnew)
{
# Login process
$credentials = array(
"username" => $user["username"],
"password" => $user["password_clear"]
);
}
$app->login($credentials);
}
Thanks