Jump to content

How to add module to Product tabs


bera_ramazan

Recommended Posts

You will need to use new hook DisplayProductExtraContent of PrestaShop 1.7x

See here for more reference info -  https://github.com/PrestaShop/PrestaShop/pull/6216

 

 

here is sample code.

public function hookDisplayProductExtraContent($params)
{
................
   $content = $this->display(__FILE__, '/views/templates/hook/hookdisplayextracontent.tpl');


   $array[] = (new PrestaShop\PrestaShop\Core\Product\ProductExtraContent())
      ->setTitle('Seller Info')
      ->setContent($content);


   return $array;
}
  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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