Jump to content

faceted search not showing poducts


ikalisnik

Recommended Posts

When module faceted search is installed and the country in address is Slovenia or if not logged in or not having address, then products are showing on category page.

When I choose some other country in address, then products are not visible on category page. Product is visible if I have direct link.

When module is not installed, then products are showing in category list for all countries (but not at root category, so I need this module)

Version of prestashop is 1.7.6.1

Any suggestion?

Link to comment
Share on other sites

  • 1 year later...

Hello,

This is my first posts but also my first solution to the communitiy. I had the exact same issue. Basically, there is an issue with the faceted search module. A patch, not nice working flawlessly is the following on 3.7.0. 

Be aware that,  you need to go modify 2 files in the server side. Not difficult but necessary to get acces from the server.

1)File MySQL.php in the following folder:

.../YOURFOLDERINSERVER/modules/ps_facetedsearch/src/Adapter/MySQL.php

Change 4 lines with:
d.thumb.png.efde9592b9e2cd59443c9d9be776870b.png

2)File MySQL.php in the following folder:

.../YOURFOLDERINSERVER/modules/ps_facetedsearch/src/Product/SearchProvider.php

Change 1 line with:

32.thumb.png.beacf7a97bf38ab36fad46a5d7b05d60.png

 

It is not a nice patch but it works and as the problem seems to have been staying from years (I've found some questionning this issue from 2017), it will do the job. Files are provided as well. 

MySQL.php SearchProvider.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...