
Übersicht über die globalen Variablen und Hooks in PrestaShop 1.7.
Globale Variablen
Alle gelisteten Smarten Variablen sind global. Achten Sie auf die Benennung ihrer eigenen Variablen um nicht existierende zu überschreiben. Empfehlung: die eigene Variable sinnvoll benennen und mit Prefix des eigenen Kürzels / des eigenen Namens zu versehen. Bsp: {$mark_mymodule_product}.
Variable | Beschreibung |
---|---|
{$currency.name} | Name der aktiven Währung. |
{$currency.iso_code} | aktiver ISO Code Währung |
{$currency.sign} | Symbol der aktiven Währung |
{$currency.iso_code_num} | ISO Code der aktiven Währung |
{$shop.name} | Shop Name in PrestaShop 1.7 |
{$shop.email} | Shop E-Mail in PrestaShop 1.7 |
{$shop.logo} | Shop logo in Prestashop 1.7 |
{$shop.favicon} | Favicon in Prestashop 1.7 |
{$shop.address.address1} | Shop Adresse1 in PrestaShop 1.7 |
{$shop.address.address2} | Shop Adresse2 in Prestashop 1.7 |
{$shop.address.postcode} | Shop PLZ in Prestashop 1.7 |
{$shop.address.city} | Shop Stadt in Prestashop 1.7 |
{$shop.address.state} | Shop Bundesland in Prestashop 1.7 |
{$shop..address.country} | Shop Land in Prestashop 1.7 |
{$shop.phone} | Shop Tel in Prestashop 1.7 |
{$shop.fax} | Shop Fax in Prestashop 1.7 |
{$language.name} | Aktive Sprache |
{$language.iso_code} | aktiver ISO Code Sprache |
{$language.language_code} | aktiver Sprachcode (Bsp. de, en, fr) |
{$language.is_rtl} | 1 / 0 (Wenn Sprache läuft von rechts zu Links) |
{$language.format_lite} and {$ language.format_full} | Simuliertes Datum-Format & volles Datum-Format |
{$language.id} | ID – aktive Sprache |
{$customer.lastname} | Kunden Nachname in Prestashop 1.7 |
{$customer.firstname} | Kunden Vorname Prestashop 1.7 |
{$customer.email} | Kunden E-Mail Prestashop 1.7 |
{$customer.birthday} | Kunden Geburtsdatum |
{$customer.newsletter} | Newsletter Registriert in Prestashop (1 registriert / 0 nicht registriert) |
{$customer.newsletter_date_add} | Registrierungsdatum Newsletter |
{$customer.ip_registration_newsletter} | IP Kunde Newsletter Registrierung |
{$customer.optin} | Partner Optin in Prestashop 1.7 |
{$customer.date_add} | Registrierungsdatum Kunde |
{$customer.date_upd} | Letztes Update Kunde (Datum) |
{$customer.id} | ID Kunde |
{$customer.id_default_group} | Standard Kundengruppe |
{$customer.is_logged } | Check if Kunde eingelogged. |
{$customer.gender.name [$customer.gender.id]} | Geschlecht Kunde (Herr / Frau) |
{$customer.addresses [Address ID] .city} | Kunden Stadt aus der Adresse ‚X‘ . (Adresse ID, weil Kunde mehrere Adressen haben kann) |
{$customer.addresses [Address ID] .alias} | Adresse Alias |
{$customer.addresses [Address ID] .firstname} | Kunde Adresse Vorname |
{$customer.addresses [Address ID] .lastname} | Kunde Adresse Nachname |
{$customer.addresses [Address ID] .company} | Kunde Adresse Firma |
{$customer.addresses [Address ID] .address1} | Kunde Adresse Adresszeile1 |
{$customer.addresses [Address ID] .address2} | Kunde Adresse Adresszeile2 |
{$customer.addresses [Address ID] .postcode} | Kunde Adresse PLZ |
{$customer.addresses [Address ID] .id_state} | Kunde Adresse Bundesland ID |
{$customer.addresses [Address ID] .state} | Kunde Adresse Bundesland |
{$customer.addresses [Address ID] .state_iso} | Kunde Adresse Bundesland ISO |
{$customer.addresses [Address ID] .id_country} | Kunde Adresse Land ID |
{$customer.addresses [Address ID] .country} | Kunde Adresse Land |
{$customer.addresses [Address ID] .country_iso} | Kunde Adresse Land ISO |
{$customer.addresses [Address ID] .phone} | Kunde Adresse Telefon |
{$customer.addresses [Address ID] .phone_mobile} | Kunde Adresse Telefon |
{$customer.addresses [ID Address] .dni} | Kunde Adresse ID |
{$customer.addresses [Address ID] .vat_number} | Kunde Adresse UstIdNr |
{$customer.addresses [Address ID] .formatted} | Kunde Adresse formatiert |
{$urls.base_url} | URL Shop |
{$urls.current_url} | Aktuelle URL (wo wir sind) |
{$urls.shop_domain_url} | Shop domain |
{$urls.img_ps_url} | Bild root directory url |
{$urls.img_cat_url} | Url directory Kategoriebilder |
{$urls.img_lang_url} | Url directory Sprachenbilder |
{$urls.img_prod_url} | Url directory Bilder |
{$urls.img_manu_url} | Url directory Herstellerbilder |
{$urls.img_sup_url} | Url directory providers Bilder |
{$urls.img_ship_url} | Url directory carriers Bilder |
{$urls.img_store_url} | |
{$urls.img_url} | Url directory Template Bilder |
{$urls.css_url} | Template URL directory |
{$urls.js_url} | Template URL JS directory |
{$urls.theme_assets} | Url of the „assets“ directory template / themes / template / assets / |
{$urls.pic_url} | Url file directory uploaded |
{$urls.pages.address} | Url „Meine Adresse“ Sektion |
{$urls.pages.addresses} | Url „Meine Adressen“ Sektion |
{$urls.pages.authentication} | Url Sektion Authentifizierung Seite |
{$urls.pages.cart} | Warenkorb Section url (order summary) |
{$urls.pages.category} | Url section Kategorien |
{$urls.pages.cms} | Url CMS Sektion |
{$urls.pages.contact} | Url Sektion Kontaktformular |
{$urls.pages.discount} | Url Discount Gutschein SeKtion |
{$urls.pages.guest_tracking} | Tracking url Gäste |
{$urls.pages.history} | Url from the Bestellhistorie Sektion |
{$urls.pages.identity} | Url „Persönliche Daten“ |
{$urls.pages.index} | Page Url |
{$urls.pages.my_account} | Url Sektion „Mein Konto“ |
{$urls.pages.order_confirmation} | Url Sektion order-confirmation Seite. |
{$urls.pages.order_follow} | Url „Order Tracking“ |
{$urls.pages.order} | |
{$urls.pages.order_return} | |
{$urls.pages.order_slip} | |
{$urls.pages.pagenotfound} | Url Sektion „404“ |
{$urls.pages.password} | Url Sektion „Recover Password“ |
{$urls.pages.pdf_invoice} | |
{$urls.pages.pdf_order_return} | |
{$urls.pages.pdf_order_slip} | |
{$urls.pages.prices_drop} | Url Sektion lowered prices / products discount / discounts |
{$urls.pages.product} | Produkt Tab url |
{$urls.pages.search} | Url Suche Sektion |
{$urls.pages.sitemap} | Site Map Sektion url |
{$urls.pages.stores} | Url der Sektion „Shops / Our stores“ |
{$urls.pages.supplier} | Url providers Sektion |
{$urls.pages.register} | Url login / Registrierung Seite |
{$urls.pages.order_login} | |
{$urls.actions.logout} | Url to close section in the store |
Hooks
Einige Hooks wurden zwischen PrestaShop 1.7.0 und 1.7.1 modifiziert.
actionDeleteProductInCartAfter wurde in 2 Hooks geteilt:
- actionObjectProductInCartDeleteBefore
- actionObjectProductInCartDeleteAfter
displayProductButtons wurde umbenannt zu displayProductAdditionalInfo – displayProductButtons funktioniert noch als alias.
Hook name | Since | Beschreibung | Dateien | Inhalt in $params |
---|---|---|---|---|
action<AdminControllerName><Action>After | Called after performing <Action> in any <AdminController> | /classes/controller/AdminController.php | array( 'controller' => (AdminController), 'return' => (mixed) ); | |
action<AdminControllerName><Action>Before | Called before performing <Action> in any <AdminController> | /classes/controller/AdminController.php | array( 'controller' => (AdminController) ); | |
action<AdminControllerName>FormModifier | Called when rendering a form in any <AdminController> | /classes/controller/AdminController.php |
| |
action<AdminControllerName>ListingFieldsModifier | /classes/controller/AdminController.php | array( 'where' => &(string), 'group_by' => &(string), 'order_by' => &(string), 'order_way' => &(string), 'fields' => &(array) ); | ||
action<AdminControllerName>OptionsModifier | /classes/controller/AdminController.php |
| ||
actionAdmin<Action>After | Called after performing <Action> in any admin controller | /classes/controller/AdminController.php |
| |
actionAdmin<Action>Before | Called before performing <Action> in any admin controller | /classes/controller/AdminController.php | array( 'controller' => (AdminController) ); | |
actionAdminControllerSetMedia | /classes/controller/AdminController.php | N/A | ||
actionAdminLoginControllerSetMedia | Called after adding media to admin login page header | /controllers/admin/AdminLoginController.php | N/A | |
actionAdminMetaAfterWriteRobotsFile | Called after generating the robots.txt file | /classes/Tools.php |
| |
actionAdminMetaBeforeWriteRobotsFile | Called before generating the robots.txt file | /classes/Tools.php | array( 'rb_data' => &(array) File data ); | |
actionAdminMetaSave | Called after saving the configuration in AdminMeta | /controllers/admin/AdminMetaController.php | N/A | |
actionAdminOrdersTrackingNumberUpdate | /controllers/admin/AdminOrdersController.php |
| ||
actionAdminProductsListingFieldsModifier | /src/Adapter/Product/AdminProductDataProvider.php |
| ||
actionAdminProductsListingResultsModifier | /src/Adapter/Product/AdminProductDataProvider.php |
| ||
actionAdminThemesControllerUpdate_optionsAfter | /controllers/admin/AdminThemesController.php | N/A | ||
actionAjaxDie<ControllerName><Method>Before | /classes/controller/Controller.php | array( 'value' => (string) ); | ||
/classes/controller/Controller.php | ||||
actionAttributeCombinationDelete | /classes/Combination.php | |||
actionAttributeCombinationSave | /classes/Combination.php | |||
actionAttributeDelete | Called when deleting an attributes features value | /classes/Attribute.php | ||
actionAttributeGroupDelete | Called while deleting an attributes group | /classes/AttributeGroup.php | ||
actionAttributeGroupSave | Called while saving an attributes group | /classes/AttributeGroup.php | ||
actionAttributeSave | Called while saving an attributes features value | /classes/Attribute.php | ||
actionAuthentication | After successful customer authentication | /classes/form/CustomerLoginForm.php | ||
actionAuthenticationBefore | Before a customer successfully signs in | /classes/form/CustomerLoginForm.php | ||
→ actionAjaxDie<ControllerName><Method>Before | /classes/controller/Controller.php | |||
actionBeforeCartUpdateQty | /classes/Cart.php | |||
actionCarrierProcess | Carrier process | /classes/checkout/CheckoutDeliveryStep.php | ||
actionCarrierUpdate | This hook is called when a carrier is updated | /controllers/admin/AdminCarrierWizardController.php /controllers/admin/AdminCarriersController.php | ||
actionCartSave | After a product is added to the cart or if the cart’s content is modified | /classes/Cart.php | ||
actionCartSummary | /classes/Cart.php | |||
actionCartUpdateQuantityBefore | /classes/Cart.php | |||
actionCategoryAdd | When a category is created | /classes/Category.php | ||
actionCategoryDelete | When a category is deleted | /classes/Category.php | ||
actionCategoryUpdate | When a category is modified | /classes/Category.php /controllers/admin/AdminProductsController.php | ||
actionClearCache | 1.7.1 | When smarty’s cache is cleared | /classes/Tools.php | |
actionClearCompileCache | 1.7.1 | When smarty’s compile cache is cleared | /classes/Tools.php | |
actionClearSf2Cache | 1.7.1 | Wwhen the Symfony cache is cleared | /classes/Tools.php | |
actionCustomerAccountAdd | When a new customer creates an account successfully | /classes/form/CustomerPersister.php |
| |
actionCustomerAccountUpdate | When a customer updates its account successfully | /classes/form/CustomerPersister.php | ||
actionCustomerAddGroups | /classes/Customer.php | |||
actionCustomerBeforeUpdateGroup | /classes/Customer.php | |||
actionCustomerLogoutAfter | /classes/Customer.php | |||
actionCustomerLogoutBefore | /classes/Customer.php | |||
actionDeliveryPriceByPrice | /classes/Carrier.php | |||
actionDeliveryPriceByWeight | /classes/Carrier.php | |||
actionDispatcher | /classes/Dispatcher.php | |||
actionDispatcherAfter | 1.7.1 | This hook is called at the end of the dispatch method of the Dispatcher | /classes/Dispatcher.php | |
actionDispatcherBefore | 1.7.1 | This hook is called at the beginning of the dispatch method of the Dispatcher | /classes/Dispatcher.php | |
actionDownloadAttachment | /controllers/front/AttachmentController.php | |||
actionEmailAddAfterContent | Add extra content after mail content This hook is called just after fetching mail template | /classes/Mail.php | ||
actionEmailAddBeforeContent | Add extra content before mail content This hook is called just before fetching mail template | /classes/Mail.php | ||
actionEmailSendBefore | Before sending an email This hook is used to filter the content or the metadata of an email before sending it or even prevent its sending | /classes/Mail.php | ||
actionFeatureDelete | This hook is called while deleting an attributes features | /classes/Feature.php | ||
actionFeatureSave | This hook is called while saving an attributes features | /classes/Feature.php | ||
actionFeatureValueDelete | This hook is called while deleting an attributes features value | /classes/FeatureValue.php | ||
actionFeatureValueSave | This hook is called while saving an attributes features value | /classes/FeatureValue.php | ||
actionFrontControllerSetMedia | /classes/controller/FrontController.php | |||
actionGetExtraMailTemplateVars | /classes/Mail.php | |||
actionGetIDZoneByAddressID | /classes/Address.php | |||
actionGetProductPropertiesAfter | /classes/Product.php | |||
actionGetProductPropertiesBefore | /classes/Product.php | |||
actionHtaccessCreate | After .htaccess creation | /classes/Tools.php | ||
actionInvoiceNumberFormatted | /classes/order/OrderInvoice.php | |||
actionModuleInstallAfter | /classes/module/Module.php | |||
actionModuleInstallBefore | /classes/module/Module.php | |||
actionModuleRegisterHookAfter | /classes/Hook.php | |||
actionModuleRegisterHookBefore | /classes/Hook.php | |||
actionModuleUnRegisterHookAfter | /classes/Hook.php | |||
actionModuleUnRegisterHookBefore | /classes/Hook.php | |||
actionObject | /classes/ObjectModel.php | |||
actionObjectAddAfter | /classes/ObjectModel.php | |||
actionObjectAddBefore | /classes/ObjectModel.php | |||
actionObjectAttributeAddBefore | /controllers/admin/AdminAttributesGroupsController.php | |||
actionObjectAttributeGroupAddBefore | /controllers/admin/AdminAttributesGroupsController.php | |||
actionObjectDeleteAfter | /classes/ObjectModel.php | |||
actionObjectDeleteBefore | /classes/ObjectModel.php | |||
actionObjectProductInCartDeleteAfter | 1.7.1 | This hook is called after a product is removed from a cart | /controllers/front/CartController.php | |
actionObjectProductInCartDeleteBefore | 1.7.1 | This hook is called before a product is removed from a cart | /controllers/front/CartController.php | |
actionObjectUpdateAfter | /classes/ObjectModel.php | |||
actionObjectUpdateBefore | /classes/ObjectModel.php | |||
actionOnImageCutAfter | /classes/ImageManager.php | |||
actionOnImageResizeAfter | /classes/ImageManager.php | |||
actionOrderEdited | This hook is called when an order is edited | /controllers/admin/AdminOrdersController.php |
| |
actionOrderHistoryAddAfter | This hook is displayed when a customer returns a product | /classes/order/OrderHistory.php | ||
actionOrderReturn | Called after a new Order Return has been made. | /controllers/front/OrderFollowController.php |
| |
actionOrderSlipAdd | Called when the quantity of a product changes in an order. WARNING: only invoked when a product is actually removed from an order. | /controllers/admin/AdminOrdersController.php |
The order of IDs and quantities is important! | |
actionOrderStatusPostUpdate | Called after the status of an order changes. | /classes/order/OrderHistory.php |
| |
actionOrderStatusUpdate | Called before the status of an order changes. | /classes/order/OrderHistory.php |
| |
actionOutputHTMLBefore | 1.7.1 | Before HTML output This hook is used to filter the whole HTML page before it is rendered (only front) | /classes/controller/FrontController.php | |
actionPasswordRenew | /controllers/front/PasswordController.php | |||
actionPaymentCCAdd | Payment CC added | /classes/order/OrderPayment.php |
| |
actionPaymentConfirmation | Called after a payment has been validated | /classes/order/OrderHistory.php |
| |
actionPDFInvoiceRender | /classes/PaymentModule.php /classes/order/OrderHistory.php /controllers/admin/AdminPdfController.php /controllers/front/PdfInvoiceController.php | |||
actionProductAdd | This hook is displayed after a product is created | /controllers/admin/AdminProductsController.php | ||
actionProductAttributeDelete | This hook is displayed when a product’s attribute is deleted | /classes/Product.php | ||
actionProductAttributeUpdate | This hook is displayed when a product’s attribute is updated | /classes/Product.php | ||
actionProductCancel | This hook is called when you cancel a product in an order | /controllers/admin/AdminOrdersController.php | ||
actionProductCoverage | /classes/stock/StockManager.php | |||
actionProductDelete | This hook is called when a product is deleted | /classes/Product.php | ||
actionProductOutOfStock | This hook displays new action buttons if a product is out of stock | /themes/classic/templates/catalog/_partials/product-details.tpl /themes/classic/templates/catalog/product.tpl | ||
actionProductSave | This hook is called while saving products | /classes/Product.php | ||
actionProductSearchAfter | 1.7.1 | This hook is called after the product search. Parameters are already filter | /classes/controller/ProductListingFrontController.php | |
actionProductUpdate | This hook is displayed after a product has been updated | /classes/Product.php /controllers/admin/AdminProductsController.php | ||
actionSearch | 1.7.1 | After the search in the store. Includes both instant and normal search. | /src/Adapter/Search/SearchProductSearchProvider.php |
|
actionSetInvoice | /classes/order/Order.php | |||
actionShopDataDuplication | After duplicating a shop. | /classes/shop/Shop.php |
| |
actionSubmitAccountBefore | 1.7.1 | /controllers/front/AuthController.php | ||
actionUpdateLangAfter | 1.7.1 | Update „lang“ tables after adding or updating a language | /classes/Language.php | |
actionUpdateQuantity | After updating the quantity of a product. Quantity is updated only when a customer effectively places their order | /classes/stock/StockAvailable.php |
| |
actionValidateCustomerAddressForm | This hook is called when a customer submit its address form | /classes/form/CustomerAddressForm.php |
| |
actionValidateOrder | After an order has been validated. Doesn’t necessarily have to be paid. | /classes/PaymentModule.php | ||
actionWatermark | After a watermark has been added to an image. | /classes/FileUploader.php /classes/webservice/WebserviceSpecificManagementImages.php /controllers/admin/AdminImportController.php /controllers/admin/AdminProductsController.php |
| |
additionalCustomerFormFields | Add fields to the Customer form This hook returns an array of FormFields to add them to the customer registration form | /classes/form/CustomerFormatter.php | ||
addWebserviceResources | This hook is called when webservice resources list in webservice controller | /classes/webservice/WebserviceRequest.php | ||
dashboardData | /controllers/admin/AdminDashboardController.php | |||
dashboardZoneOne | /controllers/admin/AdminDashboardController.php | |||
dashboardZoneTwo | /controllers/admin/AdminDashboardController.php | |||
displayAdminAfterHeader | admin-dev/themes/default/template/header.tpl admin-dev/themes/new-theme/template/layout.tpl | |||
displayAdminCustomers | Display new elements in the Back Office, tab AdminCustomers This hook launches modules when the AdminCustomers tab is displayed in the Back Office | admin-dev/themes/default/template/controllers/customers/helpers/view/view.tpl | array( 'id_customer' = (int) Customer ID ); | |
displayAdminForm | admin-dev/themes/default/template/helpers/form/form.tpl | |||
displayAdminListAfter | admin-dev/themes/default/template/controllers/countries/helpers/list/list_footer.tpl admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl admin-dev/themes/default/template/helpers/list/list_footer.tpl | |||
displayAdminListBefore | admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_header.tpl admin-dev/themes/default/template/helpers/list/list_header.tpl | |||
displayAdminLogin | admin-dev/themes/default/template/controllers/login/content.tpl | |||
displayAdminNavBarBeforeEnd | Display new elements in the Back Office, tab AdminCustomers This hook launches modules when the AdminCustomers tab is displayed in the Back Office | admin-dev/themes/default/template/nav.tpl admin-dev/themes/new-theme/template/components/layout/nav_bar.tpl | ||
displayAdminOptions | admin-dev/themes/default/template/helpers/options/options.tpl | |||
displayAdminOrder | Display new elements in the Back Office, tab AdminOrder This hook launches modules when the AdminOrder tab is displayed in the Back Office | admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl | array( 'id_order' = (int) Order ID ); | |
displayAdminOrderContentOrder | Display new elements in Back Office, AdminOrder, panel Order This hook launches modules when the AdminOrder tab is displayed in the Back Office and extends / override Order panel content | /controllers/admin/AdminOrdersController.php | ||
displayAdminOrderContentShip | Display new elements in Back Office, AdminOrder, panel Shipping This hook launches modules when the AdminOrder tab is displayed in the Back Office and extends / override Shipping panel content | /controllers/admin/AdminOrdersController.php | ||
displayAdminOrderLeft | admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl | |||
displayAdminOrderRight | admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl | |||
displayAdminOrderTabOrder | Display new elements in Back Office, AdminOrder, panel Order This hook launches modules when the AdminOrder tab is displayed in the Back Office and extends / override Order panel tabs | /controllers/admin/AdminOrdersController.php | ||
displayAdminOrderTabShip | Display new elements in Back Office, AdminOrder, panel Shipping This hook launches modules when the AdminOrder tab is displayed in the Back Office and extends / override Shipping panel tabs | /controllers/admin/AdminOrdersController.php | ||
displayAdminProductsCombinationBottom | /src/PrestaShopBundle/Resources/views/Admin/Product/Include/form_combination.html.twig | |||
displayAdminProductsExtra | ||||
displayAdminProductsMainStepLeftColumnBottom | Display new elements in back office product page, left column of This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig | ||
displayAdminProductsMainStepLeftColumnMiddle | Display new elements in back office product page, left column of This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig | ||
displayAdminProductsMainStepRightColumnBottom | Display new elements in back office product page, right column of This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig | ||
displayAdminProductsOptionsStepBottom | Display new elements in back office product page, Options tab This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig | ||
displayAdminProductsOptionsStepTop | Display new elements in back office product page, Options tab This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig | ||
displayAdminProductsPriceStepBottom | Display new elements in back office product page, Price tab This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig | ||
displayAdminProductsQuantitiesStepBottom | Display new elements in back office product page, Quantities/Com This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig | ||
displayAdminProductsSeoStepBottom | Display new elements in back office product page, SEO tab This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/Include/form_seo.html.twig | ||
displayAdminProductsShippingStepBottom | Display new elements in back office product page, Shipping tab This hook launches modules when the back office product page is displayed | /src/PrestaShopBundle/Resources/views/Admin/Product/Include/form_shipping.html.twig | ||
displayAdminStatsModules | /controllers/admin/AdminStatsTabController.php | |||
displayAdminView | admin-dev/themes/default/template/helpers/view/view.tpl | |||
displayAfterBodyOpeningTag | Very top of pages Use this hook for advertisement or modals you want to load first | /themes/classic/templates/checkout/checkout.tpl /themes/classic/templates/layouts/layout-both-columns.tpl | ||
displayAfterCarrier | After carriers list This hook is displayed after the carrier list in Front Office | /classes/checkout/CheckoutDeliveryStep.php | ||
displayAfterProductThumbs | 1.7.1 | Display extra content below product thumbs This hook displays new elements below product images ex. additional media | /themes/classic/templates/catalog/_partials/product-cover-thumbnails.tpl | |
displayAfterThemeInstallation | admin-dev/themes/default/template/controllers/themes/helpers/view/view.tpl | |||
displayAttributeForm | Add fields to the form ‚attribute value‘ This hook adds fields to the form ‚attribute value‘ | admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl | ||
displayAttributeGroupForm | Add fields to the form ‚attribute group‘ This hook adds fields to the form ‚attribute group‘ | admin-dev/themes/default/template/controllers/attributes_groups/helpers/form/form.tpl | ||
displayBackOfficeCategory | Display new elements in the Back Office, tab AdminCategories This hook launches modules when the AdminCategories tab is displayed in the Back Office | /controllers/admin/AdminCategoriesController.php | ||
displayBackOfficeFooter | Displayed within the admin panel’s footer | admin-dev/themes/default/template/footer.tpl admin-dev/themes/new-theme/template/footer.tpl | ||
displayBackOfficeHeader | Displayed between the | /classes/controller/AdminController.php | ||
displayBackOfficeOrderActions | admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl | |||
displayBackOfficeTop | Shown above the actual content of a Back Office page | /classes/controller/AdminController.php | ||
displayBanner | 1.7.1 | /themes/classic/templates/_partials/header.tpl | ||
displayBeforeBodyClosingTag | Very bottom of pages Use this hook for your modals or any content you want to load at the very end | /themes/classic/templates/checkout/checkout.tpl /themes/classic/templates/layouts/layout-both-columns.tpl | ||
displayBeforeCarrier | This hook is displayed before the carrier list on the Front Office | /classes/checkout/CheckoutDeliveryStep.php | NOTE: intified means an array of integers ‚intified‘ by | |
displayCarrierExtraContent | Display additional content for a carrier (e.g pickup points) This hook calls only the module related to the carrier, in order to add options when needed | /classes/checkout/DeliveryOptionsFinder.php | ||
displayCarrierList | Display extra carriers in the carrier list. | /classes/Cart.php |
| |
displayCartExtraProductActions | Extra buttons in shopping cart This hook adds extra buttons to the product lines, in the shopping cart | /themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl | ||
displayCheckoutSubtotalDetails | /themes/classic/templates/checkout/_partials/cart-detailed-totals.tpl | |||
displayCheckoutSummaryTop | /themes/classic/templates/checkout/_partials/cart-summary.tpl | |||
displayCMSDisputeInformation | /themes/classic/templates/cms/page.tpl | |||
displayCMSPrintButton | /themes/classic/templates/cms/page.tpl | |||
displayContentWrapperBottom | Content wrapper section (bottom) This hook displays new elements in the bottom of the content wrapper | themes/classic/templates/layouts/layout-both-columns.tpl themes/classic/templates/layouts/layout-content-only.tpl themes/classic/templates/layouts/layout-full-width.tpl themes/classic/templates/layouts/layout-left-column.tpl themes/classic/templates/layouts/layout-right-column.tpl | ||
displayContentWrapperTop | Content wrapper section (top) This hook displays new elements in the top of the content wrapper | themes/classic/templates/layouts/layout-both-columns.tpl themes/classic/templates/layouts/layout-content-only.tpl themes/classic/templates/layouts/layout-full-width.tpl themes/classic/templates/layouts/layout-left-column.tpl themes/classic/templates/layouts/layout-right-column.tpl | ||
displayCrossSellingShoppingCart | themes/classic/templates/checkout/cart-empty.tpl | |||
displayCrossSellingShoppingCart | /themes/classic/templates/checkout/cart-empty.tpl | |||
displayCustomerAccount | Displays new elements on the customer account page in Front Office | /themes/classic/templates/customer/my-account.tpl | ||
displayCustomerAccountForm | Displays information on the customer account creation form | /classes/form/CustomerForm.php | ||
displayCustomerAccountFormTop | Displayed above the customer’s account creation form | /controllers/front/AuthController.php | ||
displayCustomerLoginFormAfter | Displays new elements after the login form | /themes/classic/templates/customer/authentication.tpl | ||
displayCustomization | /classes/Product.php | |||
displayDashboardTop | Dashboard Top Displays the content in the dashboard’s top area | admin-dev/themes/default/template/page_header_toolbar.tpl | ||
displayExpressCheckout | /themes/classic/templates/checkout/_partials/cart-detailed-actions.tpl | |||
displayFeatureForm | Add fields to the form ‚feature‘ This hook adds fields to the form ‚feature‘ | admin-dev/themes/default/template/controllers/features/helpers/form/form.tpl | ||
displayFeaturePostProcess | On post-process in admin feature This hook is called on post-process in admin feature | /controllers/admin/AdminFeaturesController.php | ||
displayFeatureValueForm | Add fields to the form ‚feature value‘ This hook adds fields to the form ‚feature value‘ | admin-dev/themes/default/template/controllers/feature_value/helpers/form/form.tpl | ||
displayFeatureValuePostProcess | On post-process in admin feature value This hook is called on post-process in admin feature value | /controllers/admin/AdminFeaturesController.php | ||
displayFooter | Displays new blocks in the footer | /themes/classic/templates/_partials/footer.tpl | ||
displayFooterAfter | /themes/classic/templates/_partials/footer.tpl | |||
displayFooterBefore | /themes/classic/templates/_partials/footer.tpl | |||
displayFooterProduct | Added under the product’s description | /themes/classic/templates/catalog/product.tpl | ||
displayHeader | Added in the header of every page | /classes/controller/FrontController.php | ||
displayHome | Displayed on the content of the home page. | /controllers/front/IndexController.php | ||
displayInvoice | Invoice This hook displays new blocks on the invoice (order) | admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl | ||
displayInvoiceLegalFreeText | PDF Invoice – Legal Free Text This hook allows you to modify the legal free text on PDF invoices | /classes/pdf/HTMLTemplateInvoice.php | ||
displayLeftColumn | Displays new elements in the left-hand column | /themes/classic/templates/layouts/layout-both-columns.tpl | ||
displayLeftColumnProduct | Displays new elements in the left-hand column of the product page | /themes/classic/templates/layouts/layout-both-columns.tpl | ||
displayMaintenance | Maintenance Page This hook displays new elements on the maintenance page | /classes/controller/FrontController.php | ||
displayMyAccountBlock | Displays extra information within the „my account: block | /themes/classic/modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl | ||
displayNav1 | /themes/classic/templates/_partials/header.tpl /themes/classic/templates/checkout/_partials/header.tpl | |||
displayNav2 | /themes/classic/templates/_partials/header.tpl /themes/classic/templates/checkout/_partials/header.tpl | |||
displayNavFullWidth | Navigation This hook displays full width navigation menu at the top of your pages | /themes/classic/templates/_partials/header.tpl /themes/classic/templates/checkout/_partials/header.tpl | ||
displayNotFound | /themes/classic/templates/errors/not-found.tpl | |||
displayOrderConfirmation | Called within an order’s confirmation page | /controllers/front/OrderConfirmationController.php |
| |
displayOrderConfirmation1 | /themes/classic/templates/checkout/order-confirmation.tpl | |||
displayOrderConfirmation2 | /themes/classic/templates/checkout/order-confirmation.tpl | |||
displayOrderDetail | Displayed within the order’s details in Front Office | /controllers/front/GuestTrackingController.php /controllers/front/OrderDetailController.php |
| |
displayPaymentByBinaries | Payment form generated by binaries This hook displays form generated by binaries during the checkout | /themes/classic/templates/checkout/_partials/steps/payment.tpl | ||
displayPaymentEU | /modules/ps_legalcompliance/ps_legalcompliance.php | |||
displayPaymentReturn | Payment return | /controllers/front/OrderConfirmationController.php | ||
displayPaymentTop | Top of payment page This hook is displayed at the top of the payment page | /themes/classic/templates/checkout/_partials/steps/payment.tpl | ||
displayProductAdditionalInfo | 1.7.1 | Product page additional info This hook adds additional information on the product page | /themes/classic/templates/catalog/_partials/product-additional-info.tpl /themes/classic/templates/catalog/_partials/quickview.tpl | |
displayProductListReviews | 1.7.1 | /themes/classic/templates/catalog/_partials/miniatures/product.tpl | ||
displayProductPriceBlock | /themes/classic/templates/catalog/_partials/miniatures/product.tpl /themes/classic/templates/catalog/_partials/product-prices.tpl /themes/classic/templates/checkout/_partials/cart-summary-product-line.tpl /themes/classic/templates/checkout/_partials/order-confirmation-table.tpl | |||
displayReassurance | /themes/classic/templates/catalog/product.tpl /themes/classic/templates/checkout/cart.tpl /themes/classic/templates/checkout/checkout.tpl | |||
displayRightColumn | Displays new elements in the right-hand column | /themes/classic/templates/layouts/layout-both-columns.tpl |
Note that the | |
displayRightColumnProduct | Displays new elements in the right-hand column of the product page | /themes/classic/templates/layouts/layout-both-columns.tpl | ||
displaySearch | /themes/classic/templates/errors/not-found.tpl | |||
displayShoppingCart | Displays new action buttons within the shopping cart | /themes/classic/templates/checkout/cart.tpl | ||
displayShoppingCartFooter | Shopping cart footer This hook displays some specific information on the shopping cart’s page | /themes/classic/templates/checkout/cart.tpl | ||
displayTop | Top of pages This hook displays additional elements at the top of your pages | /themes/classic/templates/_partials/header.tpl /themes/classic/templates/checkout/_partials/header.tpl | ||
displayWrapperBottom | Main wrapper section (bottom) This hook displays new elements in the bottom of the main wrapper | themes/classic/templates/checkout/checkout.tpl themes/classic/templates/layouts/layout-both-columns.tpl | ||
displayWrapperTop | Main wrapper section (top) This hook displays new elements in the top of the main wrapper | themes/classic/templates/checkout/checkout.tpl themes/classic/templates/layouts/layout-both-columns.tpl | ||
filterCmsCategoryContent | Filter the content page category This hook is called just before fetching content page category | /controllers/front/CmsController.php | ||
filterCmsContent | Filter the content page This hook is called just before fetching content page | /controllers/front/CmsController.php | ||
filterHtmlContent | Filter HTML field before rending a page This hook is called just before fetching a page on HTML field | /src/Adapter/ObjectPresenter.php | ||
filterManufacturerContent | Filter the content page manufacturer This hook is called just before fetching content page manufacturer | /controllers/front/listing/ManufacturerController.php | ||
filterProductContent | Filter the content page product This hook is called just before fetching content page product | /controllers/front/ProductController.php | ||
filterProductSearch | 1.7.1 | /classes/controller/ProductListingFrontController.php | ||
filterSupplierContent | /controllers/front/listing/SupplierController.php | |||
moduleRoutes | /classes/Dispatcher.php | |||
overrideMinimalPurchasePrice | /classes/controller/ModuleFrontController.php /src/Adapter/Cart/CartPresenter.php | |||
sendMailAlterTemplateVars | /prestashop/classes/Mail.php | |||
termsAndConditions | /classes/checkout/ConditionsToApproveFinder.php | |||
updateProduct | /classes/Product.php /classes/webservice/WebserviceSpecificManagementImages.php | |||
validateCustomerFormFields | /classes/form/CustomerForm.php |