Jump to content

Apply filter programmatically


Recommended Posts

This is my first post, so hello to the community members!!!

I am new to prestashop  programming and I am trying to filter the list of products programmatically on the frontend(home, category, search etc) based on an attribute/feature value or a custom variable. The filter will persist on new searches and page loads(e.g. if a user selects furniture store, then only the products tagged with furniture should show up until changed by the user). I have been trying to analyze the code and reading through the documentation but could not find clear architecture to achieve this.

Is there any common DB class or php class in the backend which takes care of all the filtering on all contexts(home, category, searches etc)?  I have been searching the forums and other resources but didnt find anything for latest version of prestashop. 

Any help with the architecture, flow or the impacted classes etc would be appreciated. I can do code changes and test the results but not able to track the e2e flow for all contexts.

If there is any other way to achieve the requirement based on your past experience, suggestions would be appreciated.

 

Thank you

 

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