Jump to content

Unable to remve Stores Location


Recommended Posts

ok so if you don't want this page, open:

 

/controllers/front/StoresController.php file

there is a function init();

 

like:

	public function init()
	{
		parent::init();

		if (!extension_loaded('Dom'))
		{
			$this->errors[] = Tools::displayError('PHP "Dom" extension has not been loaded.');
			$this->context->smarty->assign('errors', $this->errors);
		}
	}

change it to:

	public function init()
	{
        Tools::redirect($this->context->link->getPageLink("index"));
		parent::init();

		if (!extension_loaded('Dom'))
		{
			$this->errors[] = Tools::displayError('PHP "Dom" extension has not been loaded.');
			$this->context->smarty->assign('errors', $this->errors);
		}
	} 

i added this function:

Tools::redirect($this->context->link->getPageLink("index"));

with this code, now, when someone will try to open your stores page - it will be redirected to homepage.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...