Formation Prestashop intégrateur: Les fonctions / La fonction hook

Vous êtes ici : Accueil / Prestashop intégrateur / Les fonctions / La fonction hook


La fonction hook

La fonction hook permet de créer un hook dans un template.

Exemple d'utilisation :

{hook h='displayTop'}
{hook h='displayProductPriceBlock' product=$product type='unit_price'}

Remarque : Par convention, et pour bénéficier de la nouvelle interface Widget, le nom d'un hook commence par "display".