Is it possible to add an order by category attribute in the search catalog?

I would like to add search relevance based on category positions. For example if I search Iphone the result returns to me: iphone case (whose category accessory) and then apple iphone (whose category gsm).

However I would like the result to display the products with the category gsm and then the category accessory, the result would be: apple iphone 7, apple iphone 8 and then iphone 7 case etc.


You can sorting rules (Assign sorting priority for each category) with extension https://mirasvit.com/magento-2-improved-sorting.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.