Jump to content

Jatin51

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

Jatin51's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. We are creating a custom module, WE created a custom hook "customPackage" in it. We need to put that hook inside the product page without changing the prestashop default product page .tpl file. Need to know how can we execute that hook on product page from our custom module. We First register hook using : $this->registerHook('customPackage'); Then we create function : public function hookCustomPackage($params){ ....... } In product.tpl of theme we execute hook using : <div id='myCustomHook'> {hook::exec('customPackage')} </div> But we want to execute hook on product.tpl without write above line in product.tpl. Please help to execute this hook from our custom module. Thank you,
×
×
  • Create New...