Integrating content in a page using hooks
Hooks are a way to associate attach your code to some specific PrestaShop events.
|actionProductSave||Called when saving products.|
|actionUpdateQuantity||Called during an the validation of an order, the status of which being something other than "canceled" or "Payment error", for each of the order's items.|
|actionProductAttributeUpdate||Called when a product declination is updated, right after said update.|
|actionProductAttributeDelete||Called when a product declination is deleted.|
|actionWatermark||Called when an image is added to a product, right after said addition.|
|displayAttributeForm||Add fields to the form "attribute value".|
|displayAttributeGroupForm||Add fields to the form "attribute group".|
|displayAttributeGroupPostProcess||Called when post-process in admin attribute group.|
|displayFeatureForm||Add fields to the form "feature".|
|displayFeaturePostProcess||Called when post-process in admin feature.|
|displayFeatureValueForm||Add fields to the form "feature value".|
|displayFeatureValuePostProcess||Called when post-process in admin feature value.|
One of the main aspects of integrating content from PrestaShop in your theme is to know where your content will be displayed, and therefore where exactly are the hooks and modules locateslocated.
This section presents a visual representation of their location on the home page. It gives you:
- the block's name.
- the block's identifier, in order to properly target it using CSS.
- the block's folder or its template file, should you wish to edit it.
Main content zones