Just like my topic says: Is it possible to set default sorting order (eg. by setDefaultOrder() function) to attribute that is not available - isn't listed in "sort by" dropdown list?

What I want to achieve is to search results are default sorted by "my_attribute", but "my_attribute" isn't possible to choose from "sort by" select.

I hope that this is clear enough :)



1 Answer 1


in your attribute options set Used for Sorting in Product Listing to yes and then your attribute will show up in sort option

hope that helps

  • No. It doesn't help. This option is reserved for product listing only (I think..).
    – user44699
    Sep 19, 2016 at 13:38
  • my attributes set this way are available in search product listing sort options Sep 29, 2016 at 9:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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