Actualy, you are right.
It's not working - sorry for my comment. Adding this code will display Faceted search module on search/manufacturer page, but it will also display all the products from your database in the product list.
Hi,
here is the answer.
If you want to include Faceted search module on Manufacturer (Brand) detail page. Just modify file ""/modules/ps_facetedsearch/src/Hook/ProductSearch.php - line: 54" from:
if ($query->getIdCategory()) {
to:
if ($query->getIdCategory() || $query->getIdManufacturer()){
If you want to display Faceted search module also on the Search page (as Estian said):
if ($query->getIdCategory() || $query->getSearchString() || $query->getIdManufacturer()){
✌️