And module:
public function hookDisplayProductActions(array $params) { if('product' == $this->context->controller->php_self){ $idProduct = Tools::getValue('id_product'); $myParams = 'Hello Word !'; $this->smarty->assign('myParams', $myParams); return $this->display(__FILE__, 'views/templates/front/my_module.tpl'); } }
And my_module.tpl:
{block name='my_module'} <hr> <div class="my_module_class"> <div class="clearfix" style="display:flex;"> <div class="my-btn">{$myParams}</div> </div> </div> {/block}