Developer's Guide

backBeforePayment
order.php
No
Called when
displaying the list of
available payment
solutions. Ideal
location to redirect
the user instead of
displaying said list
(i.e., 1-click PayPal
checkout)..
Merchandise Returns
Hook name
File
location
Visible
Description
orderReturn
order-
follow.php
No
Called when the customer request to
send his merchandise back to the
store, and if now error occurs.
PDFInvoice
Class:
PDF.php
Yes
Called when displaying the invoice in
PDF format. Ideal location to display
dynamic or static content within the
invoice.
Back-office
General
Hook name
File location
Description
backOfficeTop
header.inc.php
Called within the header,
above the tabs.
backOfficeHeader
header.inc.php
Called between the HEAD
tags. Ideal location for
adding JavaScript and CSS
files.
backOfficeFooter
footer.inc.php
Called within the page
footer, above the "Power
By PrestaShop" line.
backOfficeHome
index.php
Called at the center of the
homepage.
Orders and order details
Hook name
File location
Visible
Description
newOrder
Class:
PaymentModule.php
No
Called during
the new order
creation
process, right
after it has
been created.
paymentConfirm
Class: Hook.php
No
Called when an
order's status
becomes