Child pages
  • Hooks in PrestaShop 1.5

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hook nameDescription
actionOrderReturnCalled when the customer request to send his merchandise back to the store, and if now error occurs.
displayPDFInvoiceCalled when displaying the invoice in PDF format. Ideal location to display content within the invoice.

Mobile theme hooks

All these hooks are specicific to PrestaShop's default mobile theme.

The four first ones are in PrestaShop's internal hooks database, so the user can attach an action/interface to these hooks using the Modules > Positions page.
All the other ones exist in the mobile theme TPL files, but are not in the internal hooks database. A developer can still use them to attach content to specific portion of the code.

Hook nameDescription
displayMobileTopSiteMap 
displayMobileHeader 
displayMobileShoppingCartTop 
displayMobileAddToCartTop 
displayMobileShoppingCartTop 
displayMobileShoppingCartBottom 
displayMobileTopSiteMap 
displayMobileFooterChoice 
displayMobileShoppingCartTop 
displayMobileShoppingCartBottom 
displayMobileIndex 
mobileCustomerAccount 
displayMobileTop 
displayMobileAddToCartTop 
displayMobileShoppingCartTop 
displayMobileShoppingCartButton 
displayMobileShoppingCartBottom 
displayMobileShoppingCartTop 
displayMobileShoppingCartBottom 

 

Existing back-office hooks

...