Hook points
Hooks
| Hook | Role |
|---|---|
actionValidateCustomerAddressForm | Server-side address check: company, required number, format, VIES, countries reserved for businesses. |
actionFrontControllerSetMedia | Messages and settings for the browser, loads views/js/front.js. |
actionTaxManager | Tax calculation for an address (PrestaShop looks for « taxManager », alias of this hook): no tax for a foreign business. |
displayPDFInvoice | Reverse charge or non-taxable mention on the invoice. |
actionPresentPaymentOptions | PrestaShop 8 and later: removes payment methods for a consumer in a country reserved for businesses. |
displayPaymentTop | Explains this block to the customer. |
actionOrderStatusPostUpdate | Paid order: OSS threshold recalculated, alert email. |
displayAdminAfterHeader | Back-office banner when the threshold is near or exceeded. |
actionValidateOrder | Order validated: VIES check of the number, billing and connection countries recorded. |
displayAdminOrderSide | Back-office order view: customer type, VIES evidence, country match. |
actionFrontControllerInitBefore | Visitor country preselected from the IP address. |
displayFooter | Credit for the geolocation database source, only for the DB-IP database (CC BY 4.0 licence), on a separate line. |
displayFreshappGeoCredit | The same credit, inline, to place in the theme's copyright line; the choice is made in the « Visitor country » tab. |
actionObjectAddressAddAfter, actionObjectAddressUpdateAfter | Company address with a VAT number: the customer joins the « Businesses » group. |