Book Image

PrestaShop Module Development

By : Serny
Book Image

PrestaShop Module Development

By: Serny

Overview of this book

If you are a developer who is new to PrestaShop and wants to get a good foundation in development on the PrestaShop framework, this book is for you. It's assumed that you will have some experience with PHP5, jQuery, and HTML/CSS (no need to be an expert on it).
Table of Contents (13 chapters)
12
Index

The list of all the dynamic hooks

The following table will teach you about the 15 different dynamic hooks that PrestaShop offers:

Hook name

Description

Parameters

Files

actionAdmin{Action}After

This hook is used to trigger actions after the {Action} of any controller is made.

controller: This contains the Controller object.

/classes/controller/AdminController.php

actionAdmin{Action}Before

This hook is used to trigger actions before the {Action} of any controller is made.

controller: This contains the Controller object.

/classes/controller/AdminController.php

actionObject{ObjectModel}AddAfter

This hook is used to trigger actions at the end of the parent add method of the {ObjectModel} variable.

object: This contains the concerned object.

/classes/ObjectModel.php

actionObject{ObjectModel}AddBefore

This hook is used to trigger actions at the beginning of the parent add method of the {ObjectModel} variable.

object: This contains the concerned object.

...