m4dmike Posted February 10, 2014 Share Posted February 10, 2014 (edited) Hello, When I use a LeftColumn hook everything is ok but I can't see my module when I use displayRightColumnProduct or displayProductTab or displayProductTabContent hook. <?php if (!defined('_PS_VERSION_')) exit; class Calc extends Module { public function __construct() { $this->name = 'calc'; $this->tab = 'Test'; $this->version = 1.0; $this->author = 'm4dmike'; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('Calc'); $this->description = $this->l('Calc'); } public function install() { if (parent::install() == false OR !$this->registerHook('rightColumnProduct')) return false; return true; } public function uninstall() { if (!parent::uninstall()) Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'calc`'); parent::uninstall(); } public function hookRightColumnProduct( $params ) { global $smarty; return $this->display(__FILE__,'calc.tpl'); } public function hookLeftColumnProduct($params) { return $this->hookRightColumnProduct($params); } } ?> Edited February 10, 2014 by m4dmike (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 in what ps version you're trying to use this code? Link to comment Share on other sites More sharing options...
m4dmike Posted February 11, 2014 Author Share Posted February 11, 2014 prestashop_1.5.6.2 Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 uset his hook: displayRightColumnProduct instead of simple "RightColumnProduct" 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