Jump to content

[SOLVED] hook right column doesn't work


Recommended Posts

Hi all, i need hook modul in right column.How to do it?

 

public function install()
{
return (parent::install() 
&& Configuration::updateValue('blockcontactright_company', Configuration::get('PS_SHOP_NAME'))
&& Configuration::updateValue('blockcontactright_address', '') && Configuration::updateValue('blockcontactright_phone', '')
&& Configuration::updateValue('blockcontactright_email', Configuration::get('PS_SHOP_EMAIL'))
&& $this->registerHook('footer') && $this->registerHook('rightcolumn'));
}

I have a copy of modul blockcontactinfo

blockcontactright.zip

Edited by vekia (see edit history)
Link to comment
Share on other sites

you have to include tpl file to display contents in your front office.

without template file you will not see it.


	function hookrightColumn($params){
	    return $this->display(__FILE__, 'html.tpl');	
	}	 

then create html.tpl file with your code to display in right column :)

Link to comment
Share on other sites

It is duplicate of modul blockcontactinfo. So I need to show the contents of this module.

 

this?

&& Configuration::updateValue('blockcontactright_company', Configuration::get('PS_SHOP_NAME'))
				&& Configuration::updateValue('blockcontactright_address', '') && Configuration::updateValue('blockcontactright_phone', '')
				&& Configuration::updateValue('blockcontactright_email', Configuration::get('PS_SHOP_EMAIL'))

But I do not know how to insert it there.

Edited by tozi (see edit history)
Link to comment
Share on other sites

So i found it.

if (!$this->isCached('blockcontactright.tpl', $this->getCacheId()))
			$this->smarty->assign(array(
				'blockcontactright_company' => Configuration::get('blockcontactright_company'),
				'blockcontactright_address' => Configuration::get('blockcontactright_address'),
				'blockcontactright_phone' => Configuration::get('blockcontactright_phone'),
				'blockcontactright_email' => Configuration::get('blockcontactright_email')
			));
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...