Jump to content

New hook for Cross selling


scruffy

Recommended Posts

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

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