On 3/6/2020 at 8:35 PM, afshop said:Hello,
Do you have find a solution to show the Faceted Search module on search pages?
Thanks
Angela
I've been looking into this and it seems possible if you edit the following line in "/modules/ps_facetedsearch/src/Hook/ProductSearch.php (line #54)" (PrestaShop 1.7.6.5):
if ($query->getIdCategory()) {
And update it to:
if ($query->getIdCategory() || $query->getSearchString()) {
Seems to do the trick of adding the ps_facetedsearch module to the search page.
You need to of course make sure that the ps_facetedsearch module is hooked into the appropriate display hook (displayLeftColumn for me), and that the search page uses your theme template that makes use of the left column.
Still investigating this, unsure if there are better solutions. This seems to be the easiest.