Jump to content

module to be hooked product details page how?


Recommended Posts

Hi,

I am developing a module. The module has been hooked into left column and right column and its working fine with that. Now I want to show the module in product deatils page. So for that can someone tell me how to hook my module to the product details page? Any help and suggestions will be really appreciable.

My code for leftColumn and rightColumn is like this

 function hookLeftColumn()
 {
   $defaultLanguage = (int)(Configuration::get('PS_LANG_DEFAULT'));
   global $cookie, $smarty;
   $value=array();
   $result="SELECT status,app_id from "._DB_PREFIX_."storeblocks";
   $value=Db::getInstance()->ExecuteS($result);
   $smarty->assign('array',$value);
   $smarty->assign('default',$defaultLanguage);
   return $this->display(__FILE__, 'stores.tpl');
 }

 function hookRightColumn()
 {
   return $this->hookLeftColumn();
 }

Link to comment
Share on other sites

Hi,

You have many options there, like

 

hookExtraRight

hookExtraLeft

HookProductTabs

hookProductTabsContent

 

And likely others that i can't remember. Notice that the third one is only used to hook the list item for the tabbed navigation, while the last is used for the content of that tab

Link to comment
Share on other sites

×
×
  • Create New...