Hello
I would like to use this new hook called in the twig file : \src\PrestaShopBundle\Resources\views\Admin\Sell\Order\Order\preview.html.twig
By this line :
{{ renderhook('displayOrderPreview', {'order_id': orderId}) }}
I have created a module and this position is new. I would love to use this hook but how can I do it ? I have tried several things but in vain.
For exemple in my install function I have added
$this->registerHook('displayOrderPreview')
And I have created a function just to return a word like this :
public function hookOrderPreview($params) { return 'My module is here'; }
It doesn't work for me. I think I have to use another way but which one ? 😕
Thank you so much for your help. 🙂