2

I'd like to add a custom attribute to listing products toolbar. This is a dropdown attribute, that looks like this:

  • Available today
  • Available in 1-5 days
  • Available in 5-10 days

I have set "Used for Sorting in Product Listing" to "Yes" in attribute's configuration. As a result, products are sorted by the attributes text. But that's not correct.

I'd like to somehow ovveride the sorting function, and force it to sort this particular attribute by the attribute value ids, not the attribute value labels:

  • Available today (value id = 842)
  • Available in 1-5 days (value id = 843)
  • Available in 5-10 days (value id = 844)

Is that possible? Any ideas or guidelines?

What is the function that I could change to do this?

asked Nov 21, 2017 at 7:59

1 Answer 1

0

Catalog -> Attributes -> Manage Attributes

You should be able to set the "position" value in the attribute "manage label/options" table, and that will override the order the values are shown in

answered Feb 9, 2018 at 20:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.