on 2007 Jul 30 8:45 PM
I have a Product Line Master containing parts with size attributes (S,M,L) but the size dropdown is appearing alphabetically (L, M, S). Is there a way of sorting the attributes so they appear as (S, M, L)?
Steve
Hi Steve,
Are you talking about the attribute picker or the prod line drop block?
Either way, I believe the answer is no.
The attribute picker has no sort and the prod line drop block "ORDER BY PartNo".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had this issue using the attribute matrix. An attribute can have multiple dimensions. To sort the matrix I used the first dimension for sorting and the second dimension for the size. This may also work for the drop down list.
Eg.
Dim1, Dim2
1, S
2, M
3, L
4, XL
You then change the display options to not show dim1. A user will then sell the attribute matrix sorted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice suggestion Thomas ... I tried it and if I display the first dimension the items are sorted correctly (but the sort shows up). If I uncheck the display checkbox then they do not sort correctly anymore. I could display the sort doimension and then use javascript possibly to strip off the unwanted text in the beginning though.
I did a completely different workaround to fix my issue but if I had used the 2 dimensions for sorting it probably would have made my code simpler.
Steve
I am facing the same problem.
As it doesnt seem to be possible with backends means, wouldnt it be possible, to do an kind of ajax-body-onload request ?
I mean iterate on onload over the options of the selcect field containing the size options and re-sort them ?
Should be possible I guess.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not very familiar with ajax but I guess I could just have a javascript call on the body onload that reordered the items in the dropdown list, otherwise I would just write a user control to re-order them. It's just specific to sizes since other attributes like color can be ordered alphabetically.
User | Count |
---|---|
92 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.