Jump to content

How to disable New Product Block on left column


Ben90

Recommended Posts

Hi guys,

 

I would like to remove New Products Block on left column. But the thing is, when I remove it from left column, in displayHome or wherever it is, it will shown "no new products at this time".

 

Probably because by default this module was created to be hooked on the left column:

if ($success)
		{
			// Hook the module either on the left or right column
			$theme = new Theme(Context::getContext()->shop->id_theme);
			if ((!$theme->default_left_column || !$this->registerHook('leftColumn'))
			&& (!$theme->default_right_column || !$this->registerHook('rightColumn')))
			{
				// If there are no colums implemented by the template, throw an error and uninstall the module
				$this->_errors[] = $this->l('This module need to be hooked in a column and your theme does not implement one');
				parent::uninstall();
				return false;
			}
		}

Is there anyone who knows the solution how to remove this module from the left column, but still working well in displayHome?

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