Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page
A couple of hooks were modified between 1.7.0.x and 1.7.1.x.
actionDeleteProductInCartAfter
has been divided into two hooks:
actionObjectProductInCartDeleteBefore
.actionObjectProductInCartDeleteAfter
.displayProductButtons
has been renamed into displayProductAdditionalInfo
.Search tip: Some hooks are generated dynamically, so their names are documented in a generic way.
For example, actionAdminCustomersFormModifier
is documented as action<AdminControllerClassName>FormModifier
, so you won’t find it if you search for the exact name. When you see a controller name or action in the hook name and you can’t find it, try searching for a part of the hook name, like FormModifier
.
No hooks found
Located in: /classes/controller/AdminController.php
Parameters:
<?php
array(
'controller' => (AdminController),
'return' => (mixed)
);
Located in: /classes/controller/AdminController.php
Parameters:
<?php
array(
'controller' => (AdminController)
);
Located in: /classes/controller/AdminController.php
Parameters:
<?php
array(
'object' => &(ObjectModel),
'fields' => &(array),
'fields_value' => &(array),
'form_vars' => &(array),
);
Parameters:
<?php
array(
'select' => &(string), 'join' => &(string),
'where' => &(string),
'group_by' => &(string),
'order_by' => &(string),
'order_way' => &(string),
'fields' => &(array)
);
Parameters:
<?php
array(
'options' => &(array),
'option_vars' => &(array),
);
Located in: /classes/controller/AdminController.php
Parameters:
<?php
array(
'controller' => (AdminController),
'return' => (mixed)
);
Located in: /classes/controller/AdminController.php
Parameters:
<?php
array(
'controller' => (AdminController)
);
Parameters: N/A
Located in: /controllers/admin/AdminLoginController.php
Parameters: N/A
Located in: /classes/Tools.php
Parameters:
<?php
array(
'rb_data' => (array) File data,
'write_fd' => &(resource) File handle
);
Located in: /classes/Tools.php
Parameters:
<?php
array(
'rb_data' => &(array) File data
);
Located in: /controllers/admin/AdminMetaController.php for PrestaShop < 1.7.6
Parameters: N/A
Removed in PrestaShop 1.7.6, replacement hooks are action<HookName>(Form|Save)
Parameters:
<?php
array(
'order' => (Order),
'customer' => (Customer),
'carrier' => (Carrier)
);
Add buttons on the create order page dropdown
Located in: src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/Create/summary.html.twig
Parameters:
<?php
array(
'_ps_version' => (string) PrestaShop version,
'sql_select' => &(array),
'sql_table' => &(array),
'sql_where' => &(array),
'sql_order' => &(array),
'sql_limit' => &(string),
);
Parameters:
<?php
array(
'_ps_version' => (string) PrestaShop version,
'products' => &(PDOStatement),
'total' => (int),
);
Parameters: N/A
Removed in PrestaShop 1.7.6, replacement hooks are action(Before|After)(Create|Update)<FormName>FormHandler
Parameters:
<?php
array(
'value' => (string)
);
Located in: /classes/controller/Controller.php
Located in: /classes/Attribute.php
Located in: /classes/AttributeGroup.php
Located in: /classes/AttributeGroup.php
Located in: /classes/Attribute.php
Located in: /classes/form/CustomerLoginForm.php
Located in: /classes/form/CustomerLoginForm.php
actionAjaxDie<ControllerName><Method>Before
Located in: /classes/controller/Controller.php
actionCartUpdateQuantityBefore
Located in: /classes/Cart.php
Located in: /classes/checkout/CheckoutDeliveryStep.php
Located in:
Located in: /classes/Cart.php
Located in: /classes/Category.php
Located in: /classes/Category.php
Located in:
Invoked when the smarty cache is cleared
Located in: /classes/Tools.php
Invoked when the smarty compile cache is cleared
Located in: /classes/Tools.php
Invoked when the Symfony cache is cleared
Located in: /classes/Tools.php
Located in: /classes/form/CustomerPersister.php
Parameters:
<?php
array(
'newCustomer' => (object) Customer object
);
Located in: /classes/form/CustomerPersister.php
This hook is called at the end of the dispatch method of the Dispatcher
Located in: /classes/Dispatcher.php
This hook is called at the beginning of the dispatch method of the Dispatcher
Located in: /classes/Dispatcher.php
Located in: /classes/Mail.php
Located in: /classes/Mail.php
Located in: /classes/Mail.php
Located in: /classes/Feature.php
Located in: /classes/Feature.php
Located in: /classes/FeatureValue.php
Located in: /classes/FeatureValue.php
actionFrontControllerInitAfter
Located in: /classes/controller/FrontController.php
Located in: /classes/controller/FrontController.php
Add global variables to javascript
object and smarty
templates. Available in Front Office only.
Located in: /classes/controller/FrontController.php
Parameters since 1.7.7
<?php
array(
'templateVars' => &(array)
);
Example usage:
Your hook implementation should return array of values that will be added to prestashop
object in javascript
and $modules
object in smarty
.
<?php
public function hookActionFrontControllerSetVariables()
{
return [
'your_variable_name' => 'Your variable value',
];
}
In Front Office you can access it globally using:
console.log(prestashop.modules.your_module_name.your_variable_name);
"Hello world"
with smarty
{$modules.your_module_name.your_variable_name}
actionGetProductPropertiesAfterUnitPrice
Located in: /classes/Product.php
Located in: /classes/Tools.php
This hook is called after a product is removed from a cart
Located in: /controllers/front/CartController.php
This hook is called before a product is removed from a cart
Located in: /controllers/front/CartController.php
Located in: /controllers/admin/AdminOrdersController.php
Parameters:
<?php
array( 'order' => (object) Order
);
Located in: /classes/order/OrderHistory.php
Located in: /controllers/front/OrderFollowController.php
Parameters:
<?php
array(
'orderReturn' => (object) OrderReturn
);
Located in: /controllers/admin/AdminOrdersController.php
Parameters:
<?php
array(
'order' => Order,
'productList' => array(
(int) product ID 1,
(int) product ID 2,
...,
(int) product ID n
),
'qtyList' => array(
(int) quantity 1,
(int) quantity 2,
...,
(int) quantity n
)
);
The order of IDs and quantities is important!
Note: This hook is fired BEFORE the new OrderStatus is saved into the database.
If you need to register after this insertion, use actionOrderHistoryAddAfter
or actionObjectOrderHistoryAddAfter
instead.
Located in: /classes/order/OrderHistory.php
Parameters:
<?php
array(
'newOrderStatus' => (object) OrderState,
'id_order' => (int) Order ID
);
Located in: /classes/order/OrderHistory.php
Parameters:
<?php
array(
'newOrderStatus' => (object) OrderState,
'id_order' => (int) Order ID
);
Before HTML output This hook is used to filter the whole HTML page before it is rendered (only front)
Located in: /classes/controller/FrontController.php
Located in: /classes/order/OrderPayment.php
Parameters:
<?php
array(
'paymentCC' => (object) OrderPayment object
);
Located in: /classes/order/OrderHistory.php
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
Located in: /controllers/admin/AdminProductsController.php
Located in: /classes/Product.php
Located in: /classes/Product.php
Located in: /controllers/admin/AdminOrdersController.php
Located in: /classes/Product.php
Located in:
Located in: /classes/Product.php
This hook is called after the product search. Parameters are already filter
Located in: /classes/controller/ProductListingFrontController.php
Located in:
Add and remove product labels available on product list
Located in: /src/Adapter/Presenter/Product/ProductLazyArray.php
Parameters:
<?php
array(
'flags' => (array) &$flags,
'product' => (Product) $product,
),
After the search in the store. Includes both instant and normal search.
Located in: /src/Adapter/Search/SearchProductSearchProvider.php
Parameters:
<?php
array(
'expr' => (string) Search query,
'total' => (int) Amount of search results
);
<?php
array(
'Order' => order object,
'OrderInvoice' => order invoice object,
'use_existing_payment' => (bool)
);
Located in: /classes/shop/Shop.php
Parameters:
<?php
array(
'old_id_shop' => (int) Old shop ID,
'new_id_shop' => (int) New shop ID
);
Located in: /controllers/front/AuthController.php
Update “lang” tables after adding or updating a language
Located in: /classes/Language.php
Located in: /classes/stock/StockAvailable.php
Parameters:
<?php
array(
'id_product' => (int) Product ID,
'id_product_attribute' => (int) Product attribute ID,
'quantity' => (int) New product quantity
);
Located in: /classes/form/CustomerAddressForm.php
Parameters:
<?php
array(
'form' => (object) CustomerAddressForm
);
Located in: /classes/PaymentModule.php
Parameters:
<?php
array(
'cart' => (object) Cart,
'order' => (object) Order,
'customer' => (object) Customer,
'currency' => (object) Currency,
'orderStatus' => (object) OrderState
);
Be aware that the hook will only be called for a module specified in external_module_name
property of the carrier.
Located in: /classes/checkout/CheckoutDeliveryStep.php
Parameters:
<?php
array(
'step_name' => 'delivery',
'request_params' => $requestParams,
'completed' => &$isComplete,
);
Usage:
<?php
public function hookActionValidateStepComplete($params)
{
if ( --- your logic --- ) {
$this->context->controller->errors[] = $this->l('Please select a pickup branch!');
$params['completed'] = false;
}
}
Located in:
Parameters:
<?php
array(
'id_image' => (int) Image ID,
'id_product' => (int) Product ID
);
This hook is used to generate the buttons collection on the order view page (see ActionsBarButtonsCollection)
Located in: /src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php
Parameters:
<?php
array(
'controller' => (OrderController) Symfony controller,
'id_order' => (int) Order ID,
'actions_bar_buttons_collection' => (ActionsBarButtonsCollection) Collection of ActionsBarButtonInterface
);
This hook is called before a cart is presented
Located in: /src/Adapter/Presenter/Cart/CartPresenter.php
Parameters:
array(
'presentedCart' => array(
'products' => (ProductLazyArray|ProductListingLazyArray) $products,
'totals' => array(
'total' => array(
'type' => 'total'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
'total_including_tax' => array(
'type' => 'total_including_tax'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
'total_excluding_tax' => array(
'type' => 'total_excluding_tax'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
),
'subtotals' => array(
'products' => array(
'type' => 'products'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
'discounts' => array(
'type' => 'discounts'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
'gift_wrapping' => array(
'type' => 'gift_wrapping'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
'shipping' => array(
'type' => 'shipping'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
'tax' => array(
'type' => 'tax'
'label' => Price label
'amount' => Price amount
'value' => Price formatted
),
),
'products_count' => (int) Number of products in cart,
'summary_string' => (string) Descriptive number of products,
'labels' => array(
'tax_short' => Tax short label (incl. or excl.),
'tax_long' => Tax long label (included or excluded),
),
'id_address_delivery' => (int) Delivery address ID,
'id_address_invoice' => (int) Invoice address ID,
'is_virtual' => (bool) true if cart contains at least one virtual product,
'vouchers' => array(
'allowed' => (int) are CartRule's allowed?
'added' => (array) List of vouchers,
),
'discounts' => (array) List of highlighted discounts,
'minimalPurchase' => (string) Formatted price of configuration PS_PURCHASE_MINIMUM (and filter by hook overrideMinimalPurchasePrice),
'minimalPurchaseRequired' => Text minimal purchase if PS_PURCHASE_MINIMUM > Total products price without taxes
)
);
This hook is called before an order is presented
Located in: /src/Adapter/Presenter/Order/OrderPresenter.php
Parameters:
array(
'presentedOrder' => (array) &$orderLazyArray
);
This hook is called before an order return is presented
Located in: /src/Adapter/Presenter/Order/OrderReturnPresenter.php
Parameters:
array(
'presentedOrderReturn' => (array) &$orderReturnLazyArray
);
This hook is called before a product is presented
Located in: /src/Adapter/Presenter/Product/ProductPresenter.php
Parameters:
array(
'presentedProduct' => (array) &$productLazyArray
);
This hook is called before a product listing is presented
Located in: /src/Adapter/Presenter/Product/ProductListingPresenter.php
Parameters:
array(
'presentedProduct' => (array) &$productListingLazyArray
);
This hook is called on Admin Preferences post-process before processing the form
Located in: /src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdministrationController.php
Parameters:
<?php
[
'controller' => (AdministrationController) Symfony controller,
]
Located in: /classes/form/CustomerFormatter.php
Located in: /classes/webservice/WebserviceRequest.php
Located in: admin-dev/themes/default/template/controllers/customers/helpers/view/view.tpl
Parameters:
<?php
array(
'id_customer' = (int) Customer ID
);
Display new elements in the Back Office, tab AdminCustomers, Addresses actions. This hook launches modules when the Addresses list into the AdminCustomers tab is displayed in the Back Office
Located in: /admin-dev/themes/default/template/controllers/customers/helpers/view/view.tpl
Parameters:
<?php
array(
'id_address' => (int) Address ID
)
Administration end of content. This hook is displayed at the end of the main content, before the footer
Located in:
This hook adds new blocks before Grid component table.
Located in: src/PrestaShopBundle/Resources/views/Admin/Common/Grid/Blocks/table.html.twig
Parameters:
<?php
array(
'grid' = Grid $grid,
'controller' => (string) $controller
'legacy_controller' => (string) $legacyController
);
This hook adds new blocks after Grid component table.
Located in: src/PrestaShopBundle/Resources/views/Admin/Common/Grid/Blocks/table.html.twig
Parameters:
<?php
array(
'grid' = Grid $grid,
'controller' => (string) $controller
'legacy_controller' => (string) $legacyController
);
Located in:
Located in:
- admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
- src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig
Parameters:
<?php
array(
'id_order' = (int) Order ID
);
displayAdminOrderTabContent
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
Located in: /controllers/admin/AdminOrdersController.php
displayAdminOrderTabContent
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
Located in: /controllers/admin/AdminOrdersController.php
This hook displays new tab contents on the order view page
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/details.html.twig
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
displayAdminOrderMain
Located in: admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
This hook displays content in the order view page in the main column under the details view
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
This hook displays content in the order view page at the bottom of the main column
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
displayAdminOrderSide
Located in: admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
This hook displays content in the order view page in the side column under the customer view
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
This hook displays content in the order view page at the bottom of the side column
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
displayAdminOrderTabLink
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
Located in: /controllers/admin/AdminOrdersController.php
displayAdminOrderTabLink
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
Located in: /controllers/admin/AdminOrdersController.php
This hook displays new tab links on the order view page
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/details.html.twig
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/Include/form_seo.html.twig
Located in: /src/PrestaShopBundle/Resources/views/Admin/Product/Include/form_shipping.html.twig
In html header Use this hook to add content after title tag
Located in:
Located in:
Located in: /classes/checkout/CheckoutDeliveryStep.php
Display extra content below product thumbs This hook displays new elements below product images ex. additional media
Located in: /themes/classic/templates/catalog/_partials/product-cover-thumbnails.tpl
Located in: admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl
Located in: admin-dev/themes/default/template/controllers/attributes_groups/helpers/form/form.tpl
Located in: /controllers/admin/AdminCategoriesController.php
Displayed within the admin panel’s footer
Located in:
Located in: /classes/controller/AdminController.php
actionGetAdminOrderButtons
This hook displays content in the order view page after action buttons
Since the version 1.7.7 this hook no longer exists, an alias on the new displayAdminOrderSide
exists but it is not displayed the same way, so it is recommended to use the dedicated actionGetAdminOrderButtons
hook to add buttons
Located in: admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
Located in: /classes/controller/AdminController.php
Located in: /themes/classic/templates/_partials/header.tpl
Located in:
Located in: /classes/checkout/CheckoutDeliveryStep.php
Parameters:
<?php
array(
'carriers' => array(
array(
'name' => (string) Name,
'img' => (string) Image URL,
'delay' => (string) Delay text,
'price' => (float) Total price with tax,
'price_tax_exc' => (float) Total price without tax,
'id_carrier' => (int) intified option delivery identifier,
'id_module' => (int) Module ID
)),
'checked' => (int) intified selected carriers,
'delivery_option_list' => array(array(
0 => array( // First address
'12,' => array( // First delivery option available for this address
carrier_list => array(
12 => array( // First carrier for this option
'instance' => Carrier Object,
'logo' => <url to the carrier's logo>,
'price_with_tax' => 12.4, // Example
'price_without_tax' => 12.4, // Example
'package_list' => array(
1, // Example
3, // Example
),
),
),
is_best_grade => true, // Does this option have the biggest grade (quick shipping) for this shipping address
is_best_price => true, // Does this option have the lower price for this shipping address
unique_carrier => true, // Does this option use a unique carrier
total_price_with_tax => 12.5,
total_price_without_tax => 12.5,
position => 5, // Average of the carrier position
),
),
)),
'delivery_option' => array(
'<id_address>' => Delivery option,
...
)
);
NOTE: intified means an array of integers ‘intified’ by Cart::intifier
external_module_name
property of the carrier, otherwise it won’t be called.
Located in: /classes/checkout/DeliveryOptionsFinder.php
Display extra carriers in the carrier list.
Located in: /classes/Cart.php
Parameters:
<?php
array(
'address' => (object) Address object
);
Located in: /themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl
Content of Add-to-cart modal This hook displays content in the middle of the window that appears after adding product to cart
Located in: /themes/classic/modules/ps_shoppingcart/modal.tpl
Bottom of Add-to-cart modal This hook displays content in the bottom of window that appears after adding product to cart
Located in: /themes/classic/modules/ps_shoppingcart/modal.tpl
Located in:
Located in:
Located in: /themes/classic/templates/customer/my-account.tpl
Located in: /classes/form/CustomerForm.php
Located in: /controllers/front/AuthController.php
Located in: /themes/classic/templates/customer/authentication.tpl
Display new elements in back office page with dashboard, on icons list. This hook launches modules when the back office with dashboard is displayed
Located in:
Display new elements in back office page with a dashboard, on top Menu. This hook launches modules when a page with a dashboard is displayed
Located in:
Located in: admin-dev/themes/default/template/page_header_toolbar.tpl
Located in: admin-dev/themes/default/template/controllers/features/helpers/form/form.tpl
Located in: /controllers/admin/AdminFeaturesController.php
Located in: admin-dev/themes/default/template/controllers/feature_value/helpers/form/form.tpl
Located in: /controllers/admin/AdminFeaturesController.php
Located in: /themes/classic/templates/_partials/footer.tpl
Located in: /themes/classic/templates/catalog/product.tpl
Located in: /classes/controller/FrontController.php
Located in: /controllers/front/IndexController.php
displayAdminOrderTop
Invoice This hook displays new blocks on the invoice (order)
Located in: admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
This hook displays content at the top of the order view page
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig
Parameters:
<?php
array(
'id_order' => (int) Order ID
);
Located in: /classes/pdf/HTMLTemplateInvoice.php
Located in: /themes/classic/templates/layouts/layout-both-columns.tpl
Located in: /themes/classic/templates/layouts/layout-both-columns.tpl
Located in: /classes/controller/FrontController.php
Located in: /themes/classic/modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl
Located in:
Located in: /controllers/front/OrderConfirmationController.php
Parameters:
<?php
array(
'order' => (object) Order
);
Located in:
Parameters:
<?php
array(
'order' => (object) Order object
);
Displayed at the bottom of the order’s preview on the order’s listing page in Back Office
Located in: /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/preview.html.twig
Parameters:
<?php
array(
'order_id' => (integer) Order Id
);
Located in: /themes/classic/templates/checkout/_partials/steps/payment.tpl
Located in: /controllers/front/OrderConfirmationController.php
Located in: /themes/classic/templates/checkout/_partials/steps/payment.tpl
Display actions or additional content in the personal details tab of the checkout funnel.
Located in: /themes/classic/templates/checkout/_partials/steps/personal-information.tpl
This hook allow additional actions to be displayed & triggered, close to the add to cart button.
Located in: /themes/classic/templates/catalog/_partials/product-add-to-cart.tpl
Product page additional info This hook adds additional information on the product page
Located in:
Display extra content on the product page. This hook expects ProductExtraContent instances, which will be properly displayed by the template on the product page
Located in: /controllers/front/ProductController.php
Parameters:
<?php
array(
'product' => (object) Product object
),
Located in: /themes/classic/templates/catalog/_partials/miniatures/product.tpl
Product Page Drawer. This hook displays content in the right sidebar of the product page
Located in: /src/PrestaShopBundle/Controller/Admin/ProductController.php
Parameters:
<?php
array(
'product' => (object) Product object
),
Located in: /themes/classic/templates/layouts/layout-both-columns.tpl
Parameters:
<?php
array(
'cart' => (object) Cart object
);
Note that the Cart object can also be retrieved from the current Context.
Located in: /themes/classic/templates/layouts/layout-both-columns.tpl
Located in: /themes/classic/templates/checkout/cart.tpl
Located in: /themes/classic/templates/checkout/cart.tpl
Located in:
Located in:
Located in:
This hook allows to display extra field values added in an address form using hook ‘additionalCustomerAddressFields’
Located in: /themes/classic/templates/customer/_partials/block-address.tpl
This hook adds new blocks under all product listings - in a category, on search page, on bestsellers page etc.
Located in: /themes/classic/templates/catalog/listing/product-list.tpl
This hook adds new blocks above all product listings - in a category, on search page, on bestsellers page etc.
Located in: /themes/classic/templates/catalog/listing/product-list.tpl
Filter the content page category. This hook is called just before fetching content page category
Located in: /controllers/front/listing/CategoryController.php
Parameters:
<?php
array(
'object' => (object) Category object
),
Located in: /controllers/front/CmsController.php
Located in: /controllers/front/CmsController.php
Located in: /src/Adapter/ObjectPresenter.php
Located in: /controllers/front/listing/ManufacturerController.php
Located in: /controllers/front/ProductController.php
Located in: /classes/controller/ProductListingFrontController.php
This hook allow to alter the list of Kpis used in a Kpi row. This hook is called just before the validation and the building of the KpiRow.
Located in: /src/Core/Kpi/Row/HookableKpiRowFactory.php
Parameters:
<?php
array(
'kpis' => KpiInterface[] $kpis
),
This hook allows to modify options form content
Located in: /src/Core/Form/Handler.php
Parameters:
<?php
[
'form_builder' => (FormBuilderInterface) $this->formBuilder,
]
This hook allows to modify data of options form after it was saved
Located in: /src/Core/Form/Handler.php
Parameters:
<?php
[
'errors' => (array) &$errors,
'form_data' => (array) &$data,
]
Located in: /src/Core/Grid/Definition/Factory/AbstractGridDefinitionFactory.php
Parameters:
<?php
[
'definition' => (GridDefinition) $definition,
]
Located in: /src/Core/Grid/Data/Factory/DoctrineGridDataFactory.php
Parameters:
<?php
[
'search_query_builder' => (QueryBuilder) $searchQueryBuilder,
'count_query_builder' => (QueryBuilder) $countQueryBuilder,
'search_criteria' => (SearchCriteriaInterface) $searchCriteria,
]
Located in: /src/Core/Grid/GridFactory.php
Parameters:
<?php
[
'data' => (GridData) $data,
]
Located in: /src/Core/Grid/Filter/GridFilterFormFactory.php
Parameters:
<?php
[
'filter_form_builder' => (FormBuilderInterface) $formBuilder,
]
Located in: /src/Core/Grid/Presenter/GridPresenter.php
Parameters:
<?php
[
'presented_grid' => (array) &$presentedGrid,
]
Located in: /src/Core/Form/IdentifiableObject/Builder/FormBuilder.php
Parameters:
<?php
[
'form_builder' => (FormBuilderInterface) $formBuilder,
'data' => (array) &$data,
'id' => (int|null) $id,
]
Located in: /src/Core/Form/IdentifiableObject/Handler/FormHandler.php
Parameters:
<?php
[
'form_data' => &$data,
'id' => (int) $id,
]
Located in: /src/Core/Form/IdentifiableObject/Handler/FormHandler.php
Parameters:
<?php
[
'id' => (int) $id,
]
Located in: /src/Core/Form/IdentifiableObject/Handler/FormHandler.php
Parameters:
<?php
[
'form_data' => &$data,
]
Located in: /src/Core/Form/IdentifiableObject/Handler/FormHandler.php
Parameters:
<?php
[
'id' => $id,
]
Located in: /classes/Product.php