thank you reply,
i want override this file:
SITE/components/com_hikashop/controllers/user.php
So i created override file on template on this path:
SITE/templates/cassiopeia/html/com_hikashop/administrator/controllers/user.override.php
(also i created on "SITE/templates/cassiopeia/html/com_hikashop/controllers/user.override.php" path too for testing.)
by this code:
<?php
class userControllerOverride extends userController
{
public function form()
{
$user = JFactory::getUser();
// Allow users in group ID 15 to access the form
$allowedGroupId = 15;
if ($user->guest || in_array($allowedGroupId, $user->getAuthorisedGroups())) {
hikaInput::get()->set('layout', 'form');
return $this->display();
}
$app = JFactory::getApplication();
$config = hikashop_config();
$url = $config->get('redirect_url_when_registration_form_access_while_already_logged', '');
if(empty($url)) {
global $Itemid;
$url_itemid=(!empty($Itemid)?'&Itemid='.$Itemid:'');
$url = hikashop_completeLink('user&task=cpanel'.$url_itemid, false, true);
} else {
$url = hikashop_cleanURL($url);
}
$app->redirect($url);
return false;
}
}
but not affect!!