PrestaShop 1.7 is missing many useful hooks that can make customization more difficult for Prestashop developers. In this post, we’ll explore some of the hooks that are missing in PrestaShop 1.7
One of the most important hooks missing in PrestaShop 1.7 is the “before cart” and “after cart” hooks. These hooks allow us to modify the cart page before or after the cart has been displayed. Without these hooks, we have to use workarounds to modify the cart page. The “before order confirmation” and “after order confirmation” hooks are also missing which are used to modify the order confirmation page before or after the order has been confirmed.
Hooks that allow us to modify the customer account page before or after the account has been displayed are also missing. Even “before category” and “after category” hooks, and the “before product” and “after product” hooks are missing in PrestaShop 1.7
Here is the full list of hooks missing in Prestashop 1.7
Hook’s name | Files |
DisplayOverrideTemplate | /classes/controller/FrontController.php |
PDFInvoice | /classes/Hook.php |
actionAfterDeleteProductInCart | /controllers/front/CartController.php |
actionBeforeAuthentication | /controllers/front/AuthController.php |
actionBeforeSubmitAccount | /controllers/front/AuthController.php |
actionCartListOverride | /controllers/front/CartController.php |
actionEmailAddAfterContent | /classes/Mail.php |
actionEmailAddBeforeContent | /classes/Mail.php |
actionOrderDetail | /controllers/front/GuestTrackingController.php /controllers/front/OrderDetailController.php |
actionProductListModifier | /controllers/front/CategoryController.php |
actionProductListOverride | /controllers/front/CategoryController.php |
actionSearch | /controllers/front/SearchController.php |
addProduct | /classes/Hook.php |
advancedPaymentOptions | /controllers/front/OrderOpcController.php /controllers/front/ParentOrderController.php |
backBeforePayment | /classes/Hook.php |
deleteProduct | /classes/Hook.php |
displayAfterShoppingCartBlock | /themes/default-bootstrap/shopping-cart-advanced.tpl |
displayBanner | /themes/default-bootstrap/header.tpl |
displayBeforePayment | /controllers/front/OrderController.php |
displayBeforeShoppingCartBlock | /themes/default-bootstrap/shopping-cart-advanced.tpl /themes/default-bootstrap/shopping-cart.tpl |
displayCartTotalPriceLabel | /themes/default-bootstrap/shopping-cart-advanced.tpl /themes/default-bootstrap/shopping-cart.tpl |
displayCompareExtraInformation | /controllers/front/CompareController.php |
displayCustomerIdentityForm | /controllers/front/IdentityController.php |
displayHomeTab | /controllers/front/IndexController.php |
displayHomeTabContent | /controllers/front/IndexController.php |
displayMobileHeader | /classes/controller/FrontController.php |
displayNav | /themes/default-bootstrap/header.tpl |
displayPayment | /classes/module/Module.php /controllers/front/OrderOpcController.php /controllers/front/ParentOrderController.php |
displayProductComparison | /controllers/front/CompareController.php |
displayProductContent | /controllers/front/ProductController.php |
displayProductDeliveryTime | /themes/default-bootstrap/product-list.tpl /themes/default-bootstrap/product.tpl /themes/default-bootstrap/products-comparison.tpl /themes/default-bootstrap/shopping-cart-product-line.tpl |
displayProductListFunctionalButtons | /themes/default-bootstrap/product-list.tpl |
displayProductListReviews | /themes/default-bootstrap/product-list.tpl |
displayProductTab | /controllers/front/ProductController.php |
displayProductTabContent | /controllers/front/ProductController.php |
displayTopColumn | /themes/default-bootstrap/header.tpl |
новый заказ | /classes/Hook.php |
подтверждение заказа | /classes/Hook.php |
overrideTOSDisplay | /controllers/front/OrderController.php /controllers/front/ParentOrderController.php |
paymentConfirm | /classes/Hook.php |
paymentReturn | /classes/Hook.php |
postUpdateOrderStatus | /classes/Hook.php |
productFooter | /classes/Hook.php |
productOutOfStock | /classes/Hook.php |
updateCarrier | /classes/Hook.php |
updateOrderStatus | /classes/Hook.php |
updateProductAttribute | /classes/Hook.php |
updateQuantity | /classes/Hook.php |