Message-ID: <1431024185.379206.1711701732613.JavaMail.root@confluence-doc2-production> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_379205_1298022616.1711701732607" ------=_Part_379205_1298022616.1711701732607 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Table des mati=C3=A8res
Les hooks disposent d'un nouveau syst=C3=A8me de nommage, avec un pr=C3= =A9fixe sp=C3=A9cifique =C3=A0 la situation :
Ainsi, vous saurez aussit=C3=B4t =C3=A0 quel type de hook vous avez affa= ire. Les hooks plus anciens ont =C3=A9t=C3=A9 renomm=C3=A9s pour correspond= re =C3=A0 ce syst=C3=A8me.
Tous les hooks de PrestaShop ont =C3=A9t=C3=A9 mis =C3=A0 jour pour la v= ersion 1.5, et de nombreux autres ont =C3=A9t=C3=A9 ajout=C3=A9s.
Les listes qui suivent ont =C3=A9t=C3=A9 g=C3=A9n=C3=A9r=C3=A9es automat= iquement par un script. Les descriptions des hooks apparaissent telles qu'e= lles sont dans la base de donn=C3=A9es de PrestaShop : ils sont en anglais,= et peuvent parfois manquer.
Nom du hook |
Description du hook |
---|---|
actionAdminMetaControllerUpdate_optionsBefore= |
|
actionAdminMetaSave |
After saving configuration in AdminMeta = td> |
actionAttributeDelete |
On deleting attribute feature value |
actionAttributeGroupDelete |
On deleting attribute group |
actionAttributeGroupSave |
On saving attribute group |
actionAttributePostProcess |
On post-process in admin feature value |
actionAttributeSave |
On saving attribute feature value |
actionAuthentication |
|
actionBeforeAuthentication |
Before authentication |
actionCarrierProcess |
|
actionCarrierUpdate |
This hook is called when a carrier is updated= |
actionCartSave |
|
actionCategoryAdd |
|
actionCategoryDelete |
|
actionCategoryUpdate |
|
actionCustomerAccountAdd |
Called when a new customer successfully = creates account |
actionFeatureDelete |
On deleting attribute feature |
actionFeatureSave |
On saving attribute feature |
actionFeatureValueDelete |
On deleting attribute feature value |
actionFeatureValueSave |
On saving attribute feature value |
actionHtaccessCreate |
After |
actionObjectCategoryDeleteAfter |
|
actionObjectCategoryUpdateAfter |
|
actionObjectCmsDeleteAfter |
|
actionObjectCmsUpdateAfter |
|
actionObjectManufacturerDeleteAfter |
|
actionObjectManufacturerUpdateAfter |
|
actionObjectProductDeleteAfter |
|
actionObjectProductUpdateAfter |
|
actionObjectSupplierDeleteAfter |
|
actionObjectSupplierUpdateAfter |
|
actionOrderDetail |
To set the follow-up in Smarty when order det= ail is called. |
actionOrderReturn |
|
actionOrderSlipAdd |
Called when a quantity of one product change = in an order. |
actionOrderStatusPostUpdate |
|
actionOrderStatusUpdate |
Launch modules when the order's status change= s. |
actionPaymentCCAdd |
Payment CC added |
actionPaymentConfirmation |
|
actionProductAdd |
|
actionProductAttributeDelete |
|
actionProductAttributeUpdate |
|
actionProductCancel |
This hook is called when you cancel a product= in an order |
actionProductDelete |
This hook is called when a product is deleted= |
actionProductListOverride |
Assign product list to a category |
actionProductOutOfStock |
Make action while product is out of stock = |
actionProductSave |
On saving products |
actionProductUpdate |
|
actionSearch |
|
actionShopDataDuplication |
|
actionTaxManager |
|
actionUpdateQuantity |
Quantity is updated only when the customer ef= fectively place his order. |
actionValidateOrder |
|
actionWatermark |
|
displayAdminCustomers |
Launch modules when the tab AdminCustomers is= displayed on back-office. |
displayAdminOrder |
Launch modules when the tab AdminOrder is dis= played on back-office. |
displayAdminStatsGraphEngine |
|
displayAdminStatsGridEngine |
|
displayAdminStatsModules |
|
displayAttributeForm |
Add fields to the form "attribute value" <= /td> |
displayAttributeGroupForm |
Add fields to the form "attribute group" <= /td> |
displayAttributeGroupPostProcess |
On post-process in admin attribute group <= /td> |
displayBackOfficeFooter |
|
displayBackOfficeHeader |
|
displayBackOfficeHome |
|
displayBackOfficeTop |
|
displayBeforeCarrier |
This hook is display before the carrier list = on Front office |
displayBeforePayment |
Redirect user to the module instead of displa= ying payment modules |
displayCarrierList |
|
displayCustomerAccount |
Display on page account of the customer = td> |
displayCustomerAccountForm |
Display some information on the form to creat= e a customer account |
displayCustomerAccountFormTop |
|
displayFeatureForm |
Add fields to the form "feature" |
displayFeaturePostProcess |
On post-process in admin feature |
displayFeatureValueForm |
Add fields to the form "feature value" |
displayFeatureValuePostProcess |
On post-process in admin feature value |
displayFooter |
Add block in footer |
displayFooterProduct |
Add new blocks under the product description<= /p> |
displayHeader |
A hook which allow you to do things in the he= ader of each pages |
displayHome |
|
displayInvoice |
Add blocks to invoice (order) |
displayLeftColumn |
|
displayLeftColumnProduct |
|
displayMyAccountBlock |
Display extra information inside the "my acco= unt" block |
displayMyAccountBlockfooter |
Display extra information inside the "my acco= unt" block |
displayOrderConfirmation |
Called on order confirmation page |
displayOrderDetail |
Displayed on order detail on front office = |
displayPDFInvoice |
Allow the display of extra information into t= he PDF invoice |
displayPayment |
|
displayPaymentReturn |
|
displayPaymentTop |
Top of payment page |
displayProductButtons |
Put new action buttons on product page |
displayProductComparison |
Extra Product Comparison |
displayProductTab |
Called on order product page tabs |
displayProductTabContent |
Called on order product page tabs |
displayRightColumn |
|
displayRightColumnProduct |
|
displayShoppingCart |
Display some specific information |
displayShoppingCartFooter |
Display some specific information on the shop= ping cart page |
displayTop |
A hook which enables you to do things at the = top of each page. |
La plupart de ces hooks sont les m=C3=AAmes que dans la version 1.4 de P= restaShop, mais ont =C3=A9t=C3=A9 renomm=C3=A9s avec le bon pr=C3=A9fixe ("= action" ou "display") pour rester compatibles avec le syst=C3=A8me de nomma= ge de la 1.5.
Ancien nom du hook |
Nouveau nom du hook |
Description du hook |
---|---|---|
AdminStatsModules |
displayAdminStatsModules |
|
GraphEngine |
displayAdminStatsGraphEngine |
|
GridEngine |
displayAdminStatsGridEngine |
|
PDFInvoice |
displayPDFInvoice |
Allow the display of extra information into t= he PDF invoice |
addproduct |
actionProductAdd |
|
adminCustomers |
displayAdminCustomers |
Launch modules when the tab AdminCustomers is= displayed on back-office. |
adminOrder |
displayAdminOrder |
Launch modules when the tab AdminOrder is dis= played on back-office. |
afterCreateHtaccess |
actionHtaccessCreate |
After |
afterDeleteAttribute |
actionAttributeDelete |
On deleting attribute feature value |
afterDeleteAttributeGroup |
actionAttributeGroupDelete |
On deleting attribute group |
afterDeleteFeature |
actionFeatureDelete |
On deleting attribute feature |
afterDeleteFeatureValue |
actionFeatureValueDelete |
On deleting attribute feature value |
afterSaveAdminMeta |
actionAdminMetaSave |
After save configuration in AdminMeta |
afterSaveAttribute |
actionAttributeSave |
On saving attribute feature value |
afterSaveAttributeGroup |
actionAttributeGroupSave |
On saving attribute group |
afterSaveFeature |
actionFeatureSave |
On saving attribute feature |
afterSaveFeatureValue |
actionFeatureValueSave |
On saving attribute feature value |
afterSaveProduct |
actionProductSave |
On saving products |
attributeForm |
displayAttributeForm |
Add fields to the form "attribute value" <= /td> |
attributeGroupForm |
displayAttributeGroupForm |
Add fields to the form "attribute group" <= /td> |
authentication |
actionAuthentication |
|
backBeforePayment |
displayBeforePayment |
Redirect user to the module instead of displa= ying payment modules |
backOfficeFooter |
displayBackOfficeFooter |
|
backOfficeHeader |
displayBackOfficeHeader |
|
backOfficeHome |
displayBackOfficeHome |
|
backOfficeTop |
displayBackOfficeTop |
|
beforeAuthentication |
actionBeforeAuthentication |
Before authentication |
beforeCarrier |
displayBeforeCarrier |
This hook is display before the carrier list = on Front office |
cancelProduct |
actionProductCancel |
This hook is called when you cancel a product= in an order |
cart |
actionCartSave |
|
categoryAddition |
actionCategoryAdd |
|
categoryDeletion |
actionCategoryDelete |
|
categoryUpdate |
actionCategoryUpdate |
|
createAccount |
actionCustomerAccountAdd |
Called when a new customer successfully creat= es an account |
createAccountForm |
displayCustomerAccountForm |
Display some information on the form to creat= e a customer account |
createAccountTop |
displayCustomerAccountFormTop |
|
customerAccount |
displayCustomerAccount |
Display on page account of the customer = td> |
deleteProductAttribute |
actionProductAttributeDelete |
|
deleteproduct |
actionProductDelete |
This hook is called when a product is deleted= |
extraCarrier |
displayCarrierList |
|
extraLeft |
displayLeftColumnProduct |
|
extraProductComparison |
displayProductComparison |
Extra Product Comparison |
extraRight |
displayRightColumnProduct |
|
featureForm |
displayFeatureForm |
Add fields to the form "feature" |
featureValueForm |
displayFeatureValueForm |
Add fields to the form "feature value" |
footer |
displayFooter |
Add block in footer |
header |
displayHeader |
A hook which allow you to do things in the he= ader of each pages |
home |
displayHome |
|
invoice |
displayInvoice |
Add blocks to invoice (order) |
leftColumn |
displayLeftColumn |
|
myAccountBlock |
displayMyAccountBlock |
Display extra information inside the "my acco= unt" block |
newOrder |
actionValidateOrder |
|
orderConfirmation |
displayOrderConfirmation |
Called on order confirmation page |
orderDetail |
actionOrderDetail |
To set the follow-up in Smarty when order det= ail is called |
orderDetailDisplayed |
displayOrderDetail |
Displayed on order detail on front office = |
orderReturn |
actionOrderReturn |
|
orderSlip |
actionOrderSlipAdd |
Called when a quantity of one product change = in an order. |
payment |
displayPayment |
|
paymentCCAdded |
actionPaymentCCAdd |
Payment CC added |
paymentConfirm |
actionPaymentConfirmation |
|
paymentReturn |
displayPaymentReturn |
|
paymentTop |
displayPaymentTop |
Top of payment page |
postProcessAttribute |
actionAttributePostProcess |
On post-process in admin feature value |
postProcessAttributeGroup |
displayAttributeGroupPostProcess |
On post-process in admin attribute group <= /td> |
postProcessFeature |
displayFeaturePostProcess |
On post-process in admin feature |
postProcessFeatureValue |
displayFeatureValuePostProcess |
On post-process in admin feature value |
postUpdateOrderStatus |
actionOrderStatusPostUpdate |
|
processCarrier |
actionCarrierProcess |
|
productActions |
displayProductButtons |
Put new action buttons on product page |
productListAssign |
actionProductListOverride |
Assign product list to a category |
productOutOfStock |
actionProductOutOfStock |
Make action while product is out of stock = |
productTab |
displayProductTab |
Called on order product page tabs |
productTabContent |
displayProductTabContent |
Called on order product page tabs |
productfooter |
displayFooterProduct |
Add new blocks under the product description<= /p> |
rightColumn |
displayRightColumn |
|
search |
actionSearch |
|
shoppingCart |
displayShoppingCartFooter |
Display some specific information on the shop= ping cart page |
shoppingCartExtra |
displayShoppingCart |
Display some specific information |
taxManager |
actionTaxManager |
|
top |
displayTop |
A hook which allow you to do things at the to= p of each pages. |
updateCarrier |
actionCarrierUpdate |
This hook is called when a carrier is updated= |
updateOrderStatus |
actionOrderStatusUpdate |
Launch modules when the order's status change= s. |
updateProductAttribute |
actionProductAttributeUpdate |
|
updateQuantity |
actionUpdateQuantity |
Quantity is updated only when the customer ef= fectively place his order. |
updateproduct |
actionProductUpdate |
|
watermark |
actionWatermark |
|
Nom du hook |
Description du hook |
---|---|
displayHeader | Called within the HTML <head> tags. = Ideal location for adding JavaScript and CSS files. |
displayTop | Called in the page's header. |
displayLeftColumn | Called when loading the left column. |
displayRightColumn | Called when loading the right column. |
displayFooter | Called in the page's footer. |
displayHome | Called at the center of the homepage. |
Nom du hook |
Description du hook |
---|---|
displayLeftColumnProduct | Called right before the "Print" link, under the = picture. |
displayRightColumnProduct | Called right after the block for the "Add to Car= t" button. |
displayProductButtons | Called inside the block for the "Add to Cart" bu= tton, right after that button. |
actionProductOutOfStock | Called inside the block for the "Add to Cart" bu= tton, right after the "Availability" information. |
displayFooterProduct | Called right before the tabs. |
displayProductTab | Called in tabs list, such as "More info", "Data = sheet", "Accessories", etc. |
displayProductTabContent | Called when a tab is clicked. |
Nom du hook |
Description du hook |
---|---|
actionCartSave | Called right after a cart creation or update. |
displayShoppingCartFooter | Called right below the cart items table. |
displayShoppingCart | Called after the cart's table of items, right ab= ove the navigation buttons. |
displayCustomerAccountFormTop | Called within the client account creation form, = right above the "Your personal information" block. |
displayCustomerAccountForm | Called within the client account creation form, = right before the "Register" button. |
actionCustomerAccountAdd | Called right after the client account creation.<= /td> |
displayCustomerAccount | Called on the client account homepage, after the= list of available links. Ideal location to add a link to this list. |
displayMyAccountBlock | Called within the "My account" block, in the lef= t column, below the list of available links. This is the ideal location to = add a link to this list. |
displayMyAccountBlockfooter | Displays extra information inside the "My accoun= t" block. |
actionAuthentication | Called right after the client identification, on= ly if the authentication is valid (e-mail address and password are both OK)= . |
actionBeforeAuthentication | Called right before authentication. |
Nom du hook |
Description du hook |
---|---|
actionSearch | Called after a search is performed. Ideal = location to parse and/or handle the search query and results. |
Nom du hook |
Description du hook |
---|---|
displayBeforeCarrier | Displayed before the carrier list on front= -office. |
displayCarrierList | Called after the list of available carrier= s, during the order process. Ideal location to add a carrier, as added by a= module. |
Nom du hook |
Description du hook |
---|---|
displayPaymentTop | Top of payment page. |
displayPayment | Called when needing to build a list of the avail= able payment solutions, during the order process. Ideal location to enable = the choice of a payment module that you have developed. |
displayPaymentReturn | Called when the user is sent back to the store a= fter having paid on the 3rd-party website. Ideal location to display a conf= irmation message or to give some details on the payment. |
displayOrderConfirmation | A duplicate of paymentReturn. |
displayBeforePayment | Called when displaying the list of available pay= ment solutions. Ideal location to redirect the user instead of displaying s= aid list (i.e., 1-click PayPal checkout). |
Nom du hook |
Description du hook |
---|---|
actionOrderReturn | Called when the customer request to send h= is merchandise back to the store, and if now error occurs. |
displayPDFInvoice | Called when displaying the invoice in PDF = format. Ideal location to display content within the invoice. |
Nom du hook |
Description du hook |
---|---|
displayBackOfficeTop | Called within the header, above the tabs.<= /span> |
displayBackOfficeHeader | Called between the HEAD tags. Ideal locati= on for adding JavaScript and CSS files. |
displayBackOfficeFooter | Called within the page footer, above the "= Power By PrestaShop" line. |
displayBackOfficeHome | Called at the center of the homepage. |
Nom du hook |
Description du hook |
---|---|
actionValidateOrder | Called during the new order creation process, ri= ght after it has been created. |
actionPaymentConfirmation | Called when an order's status becomes "Payment a= ccepted". |
actionOrderStatusUpdate | Called when an order's status is changed, right = before it is actually changed. |
actionOrderStatusPostUpdate | Called when an order's status is changed, right = after it is actually changed. |
actionProductCancel | Called when an item is deleted from an order, ri= ght after the deletion. |
displayInvoice | Called when the order's details are displayed, a= bove the Client Information block. |
displayAdminOrder | Called when the order's details are displayed, b= elow the Client Information block. |
actionOrderSlipAdd | Called during the creation of a credit note, rig= ht after it has been created. |
Nom du hook |
Description du hook |
---|---|
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, ri= ght after said update. |
actionProductAttributeDelete | Called when a product declination is deleted. |
actionWatermark | Called when an image is added to a product, righ= t 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 grou= p. |
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.= |
Nom du hook |
Description du hook |
---|---|
displayAdminStatsGraphEngine | Called when a stats graph is displayed. |
displayAdminStatsGridEngine | Called when the grid of stats is displayed= . |
displayAdminStatsModules | Called when the list of stats modules is d= isplayed. |
Nom du hook |
Description du hook |
---|---|
displayAdminCustomers | Called when a client's details are display= ed, right after the list of the clients groups the current client belongs t= o. |
Nom du hook |
Description du hook |
---|---|
actionCarrierUpdate | Called during a carrier's update, right af= ter said update. |