Aramask Posted June 28, 2023 Share Posted June 28, 2023 (edited) I'm trying to add a new filter to ps_facetedsearch so the user can filter products in the category page and see only those that are considered new products (meaning, those created in the last 30 days) I've been googling for hours but I haven't found any useful documentation. Could you guys point me in the right direction? This is a pretty common filter for an e-commerce so I'm sure there's gotta be other people out there that had to face the same problem. I know there's a new-products controller, but it has its limitations when filtering by subcategories, so I think it makes more sense to have a 'New Products' filter on the category page. Thank you! Edited June 28, 2023 by Aramask (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted June 29, 2023 Share Posted June 29, 2023 Hi. Maybe this thread will help you: https://www.prestashop.com/forums/topic/1025052-add-custom-product-field-to-ps_facetedsearch-layered-filter-block/ Link to comment Share on other sites More sharing options...
Aramask Posted June 30, 2023 Author Share Posted June 30, 2023 Thank you. I've managed to understand how it's done and apply it myself to my own module. I am surprised, however, that there is no documentation for something as basic as adding a filter, and that the only alternative is to waste a day's work trying to understand how it is coded. Thank you for pointing me in the right direction ps8 1 Link to comment Share on other sites More sharing options...
ps8modules Posted July 1, 2023 Share Posted July 1, 2023 I'm glad you were able to resolve it. The documentation is really poor. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now