0

Some products have custom attribute blue_widget.

On category pages, I want to list all blue_widget poducts that belong to that category first, and then the rest of the products.

However, I want to keep this order regardless of sorting selected by a user. For example: If user sets sorting against price, I want all 'blue_widget' products listed first (sorted by price), and then the rest of products also sorted by price. Same with name sorting.

How to achieve this?

  1. Manipulating with SQL query
  2. Filter returned collection and move blue_widget products to top? How?

Your Answer

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

Browse other questions tagged or ask your own question.