PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook actionBuildMailLayoutVariables


Build the variables used in email layout rendering:

This hook allows to change the variables used when an email layout is rendered

Hook locations:

  • front office

Hook type: action

Located in:

Call of the Hook in the origin file

                'mailLayout' => $mailLayout,
                'mailLayoutVariables' => &$mailLayoutVariables,

Example implementation

This hook has been implemented as an example in our modules examples repository - example_module_mailtheme.