Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document missing hooks for v8 #1447

Closed
kpodemski opened this issue Aug 11, 2022 · 4 comments
Closed

Document missing hooks for v8 #1447

kpodemski opened this issue Aug 11, 2022 · 4 comments
Assignees

Comments

@kpodemski
Copy link
Contributor

kpodemski commented Aug 11, 2022

List to confirm/document:

actionFilterDeliveryOptionList allows to modify the delivery option list result (#27222).
actionValidateOrderAfter allows to be notified after the complete creation of an order (#23787).
displayCheckoutBeforeConfirmation allows to display custom content at the end of checkout process.
actionOrderStatusUpdate and actionOrderStatusPostUpdate allows to be notified before and after an order status is changed.
actionPresentPaymentOptions is called before payment options are presented in front office (#26259)
actionGetAdminToolbarButtons allows you to define buttons and add them to any toolbar in the back office (#27485)
actionGetAlternativeSearchPanels allows to add an additional search panel for external providers in PrestaShop back office
(#28635)
dashboardZoneThree is displayed in the third column of the dashboard (#25030)
actionBeforeCreateCartSummaryFormHandler and actionAfterCreateCartSummaryFormHandler - allows to modify form data for the order created from back office (#22321)
displayBackOfficeEmployeeMenu allows to modify back office employee menu (#25008)
displayEmptyModuleCategoryExtraMessage allows to display an extra message for an empty modules category in back office
(#28317)
actionProductFormBuilderModifier allows to modify the form content on the experimental product page (#24213)
actionBeforeCreateProductFormHandler,
actionAfterCreateProductFormHandler ,
actionBeforeUpdateProductFormHandler, and
actionAfterUpdateProductFormHandler
allows to modify experimental product page form data
(#24213)
Product page hooks are included below:
For the product list:
actionProductGridDefinitionModifier
actionProductGridQueryBuilderModifier
actionProductGridDataModifier
actionProductGridFilterFormModifier
actionProductGridPresenterModifier
For the edit form:
actionProductFormBuilderModifier
actionProductFormDataProviderData
actionCategoryTreeSelectorFormDataProviderDefaultData
actionCategoryTreeSelectorFormBuilderModifier
On the creation form:
actionCreateProductFormDataProviderDefaultData
actionCreateProductFormBuilderModifier

@zuk3975
Copy link
Contributor

zuk3975 commented Aug 23, 2022

couldn't find where following hooks are executed:

  • displayCheckoutBeforeConfirmation

@thomasnares
Copy link
Contributor

couldn't find where following hooks are executed:

  • displayCheckoutBeforeConfirmation

In classic theme : themes/classic/templates/checkout/_partials/steps/payment.tpl

{hook h='displayCheckoutBeforeConfirmation'}

@thomasnares
Copy link
Contributor

Not directly documented but generic ones, matched by regex in devdocs :

  • actionBeforeCreateCartSummaryFormHandler > generic
  • actionAfterCreateCartSummaryFormHandler > generic
  • actionBeforeCreateProductFormHandler > generic
  • actionAfterCreateProductFormHandler > generic
  • actionBeforeUpdateProductFormHandler > generic
  • actionAfterUpdateProductFormHandler > generic

Missing ones :

  • displayBackOfficeEmployeeMenu
  • actionProductFormBuilderModifier
  • actionProductGridDefinitionModifier
  • actionProductGridQueryBuilderModifier
  • actionProductGridDataModifier
  • actionProductGridFilterFormModifier
  • actionProductGridPresenterModifier
  • actionProductFormBuilderModifier
  • actionProductFormDataProviderData
  • actionCategoryTreeSelectorFormDataProviderDefaultData
  • actionCategoryTreeSelectorFormBuilderModifier
  • actionCreateProductFormDataProviderDefaultData
  • actionCreateProductFormBuilderModifier

@thomasnares
Copy link
Contributor

Created :

  • actionGridDataModifier
  • actionGridDefinitionModifier
  • actionGridFilterFormModifier
  • actionGridQueryBuilderModifier
  • actionFormBuilderModifier
  • actionFormDataProviderData

Was already in :

  • displayBackOfficeEmployeeMenu

All done ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants