Jump to content

Adding a new search value based on a product feature


Rudy69

Recommended Posts

Hello,
On Prestashop 1.7.6.5, I would like to know if it was possible to propose a new choice of sorting products in the dropdown list to customers from a feature I created.

Each product offers this new feature "ranking" which contains a number from 1 to n.
The sorting of products would then be based on this feature.

I have searched for "modules_facetedsearch\src\Product\SearchProvider.php" and more precisely for the "getAvailableSortOrders()" function but I have no idea how to set up this solution.

If you have any clues, I would be grateful.

Sincerely

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