Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save 123monsite-regis/4ec007203e3eff4ce5e0163779b0754a to your computer and use it in GitHub Desktop.

Select an option

Save 123monsite-regis/4ec007203e3eff4ce5e0163779b0754a to your computer and use it in GitHub Desktop.
$searchVariables = array(
'result' => $result,
'label' => $this->getListingLabel(),
'products' => $products,
'sort_orders' => $sort_orders,
'sort_selected' => $sort_selected,
'pagination' => $pagination,
'rendered_facets' => $rendered_facets,
'rendered_active_filters' => $rendered_active_filters,
'js_enabled' => $this->ajax,
'current_url' => $this->updateQueryString($currentUrlParams),
);
//Hook::exec('actionProductSearchComplete', $searchVariables);
Hook::exec('filterProductSearch', array('searchVariables' => &$searchVariables));
if (version_compare(_PS_VERSION_, '1.7.1.0', '>=')) {
Hook::exec('actionProductSearchAfter', $searchVariables);
}
return $searchVariables;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment