belcoutureco Posted April 26, 2014 Share Posted April 26, 2014 Hi, Need help to remove "Our Stores" as shown on the photo. Have tried searching around but still cannot find it where can I close it. Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2014 Share Posted April 26, 2014 the question is: you want to remove whole page? or only this map? Link to comment Share on other sites More sharing options...
belcoutureco Posted April 27, 2014 Author Share Posted April 27, 2014 Hi Vekia, Thanks for the reply, I wish to close the whole page. Link to comment Share on other sites More sharing options...
vekia Posted April 27, 2014 Share Posted April 27, 2014 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 More sharing options...
belcoutureco Posted April 28, 2014 Author Share Posted April 28, 2014 Thanks! I will close this post. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now