How to create your own hook in Prestashop ?

devquora
devquora

Posted On: Jun 10, 2021

 

To create your own hook in Prestashop you can follow the given steps:

  • Go to Theme directory / config / theme.yml file and find the block “hooks”
  •  Inside the hooks block add     

           custom_hooks:

                   - name: yourCustomHookName

          title: yourCustomHookName

          description: Adds Block before the footer block

  • Now, you need to place hook in the template file. For example, Go to : Theme directory > templates > _partials > footer.tpl
  • Now add the custom hook : {hook h='yourCustomHookName'}

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    PrestaShop Interview Questions

    What is Prestashop?

    Prestashop is free rich featured open source e-commerce solution published under Open Software License (OSL). It allows..

    PrestaShop Interview Questions

    List out some features of Prestashop?

    Below are the list features supported Prestashop:- Hundreds of Store Templates Inbuilt Website Builder Mobile Responsiv..

    PrestaShop Interview Questions

    On what architecture Prestashop is based?

    PrestaShop is based on a 3-tier architecture:Object/data. Database access is controlled through files in the “class..