PrestaShop/docs

Somes search of hook name show another one

PrestaEdit opened this issue · 5 comments

Hi @PrestaEdit , this is inherent of the way our hook regex matching works to maybe make false positives.

We can update the matched hook to actionAdmin<ControllerName><Action>Before to fix the false positive.

But, which hook should have been returned for your example actionProductSearchProviderRunQueryBefore ?

Need to Document :

actionProductSearchProviderRunQueryBefore (classes/controllet/ProductListingFrontController.php)
actionProductSearchProviderRunQueryAfter (classes/controllet/ProductListingFrontController.php)

But only in V8, not in 1.7

As the hooks page has been improved drastically on the v8 page, we won't be backporting changes to 1.7 anymore.

If you notice something to improve in v8 version let us now @PrestaEdit 💪🏻 or maybe submit a PR 👀