scruffy Posted October 26, 2011 Share Posted October 26, 2011 Hello, How can I create a new hook for module Cross selling? I need a module Products category and Cross-selling at two different positions. I created a function hook, but these modules does not work. I think this can help: Crossseling.php public function install() { if (!parent::install() OR !$this->registerHook('productFooter') OR !$this->registerHook('header') OR !Configuration::updateValue('CROSSSELLING_DISPLAY_PRICE', 0)) return false; return true; } classes/hook.php on line 168 public static function productFooter($product, $category) { return Module::hookExec('productFooter', array('product' => $product, 'category' => $category)); } Thanks Link to comment Share on other sites More sharing options...
Fabien Serny Posted October 29, 2011 Share Posted October 29, 2011 Hi, You don't have to create method in classes/hook.php In Crosseling.php, you just have to add this function function hookProductFooter($params) { // Your code here } 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