PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook actionSearch

Information

Hook locations:

  • front office

Hook type: action

Located in:

Parameters details

    <?php
    array(
      'expr' => (string) Search query,
      'total' => (int) Amount of search results
    );

Call of the Hook in the origin file

Hook::exec('actionSearch', [
                'searched_query' => $queryString,
                'total' => $count,

                // deprecated since 1.7.x
                'expr' => $queryString,
            ])