Jump to content

How to filter the result of search in getProductSearchQuery like with a where clause?


Ali Samie

Recommended Posts

Hi. I was trying to override a class of a listing controller from this path `controllers/front/listing/CategoryController.php`. If you have issues check this post.

I want to know if there is a way to filter the search query before actually searching the database. Like a where clause. I need to drop some products from the list before searching like when you write in a SQL this code: ` WHERE id_product NOT IN (1,2,3,4) `.

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...