Jump to content

GuestTrackingController init override not working


babyewok

Recommended Posts

I have PS 1.5.6.2 and am trying to override GuestTrackingController.php.  I have placed the following file in overrdies/controllers/front and the class_index.php cache seems ot have picked this up, but teh change is not being made!

class GuestTrackingController extends GuestTrackingControllerCore
{
public function init()
	{
		$this->display_column_left = true;
		parent::init();
		if ($this->context->customer->isLogged())
			Tools::redirect('history.php');
	}
}

I really don't get why the left column is still showing as empty when the PS cache seems to have recognised the override file!  Am I missing something?

Link to comment
Share on other sites

Hmm, weird - just thought I'd try something based on someone else's post and used initHeader instead of init and it seems to work now!  For future referrence, why would initHeader work and not init?  Is there any reason why I shouldn't do it this way?

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...