Jump to content

Prestashop 1.7.6.9 - Hooks Not Visible


Recommended Posts

Hello Guys,  

I am using Prestashop 1.7.6.9 and i am trying to build custom module from scratch. 

I navigated to Improve >> Design >> Positions to find a relevant hook for my purpose, but unfortunately the hooks are not being displayed. Please check the image attached for reference. 

Any help will be much appreciated, Thanks in advance.   

Screenshot 2022-10-11 at 8.59.03 PM.png

Link to comment
Share on other sites

class BWDisplay extends ModuleFrontController
{
	public function initContent()
	{
		parent::initContent();

		$param1 = 'hello';
		$param2 = 'word';
		$this->context->smarty->assign(array(
			'param1' => $param1,
			'param2' => $param2,
		));

		if (_PS_VERSION_ >= '1.5' && _PS_VERSION_ < '1.7') {
			$this->setTemplate('module:ganalitics/views/templates/front/page.tpl');
		}
          
	}

}

 

Link to comment
Share on other sites

13 minutes ago, 4you.software said:
class BWDisplay extends ModuleFrontController
{
	public function initContent()
	{
		parent::initContent();

		$param1 = 'hello';
		$param2 = 'word';
		$this->context->smarty->assign(array(
			'param1' => $param1,
			'param2' => $param2,
		));

		if (_PS_VERSION_ >= '1.5' && _PS_VERSION_ < '1.7') {
			$this->setTemplate('module:ganalitics/views/templates/front/page.tpl');
		}
          
	}

}

 

Could you explain?

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