Jump to content

Ordering Attributes


Recommended Posts

Thank you very much for you quick reply :)

The topic you pointed me to was very useful :)

Can I put forward the suggestion of adding a way of sorting the attributes in the new version? I would suggest sorting on the id_attrbute field in ps_attribute. Then allowing the ps_attribute field to be changed by moving the order of attribute items ...

Many thanks again

Andy

Link to comment
Share on other sites

If they can be sorted alphabetically then we could do a workaround for special cases like numercial sorting and sizing as follows:

I haven't tried this on PS but I have used this method on other carts:

" S" ie. space space S
" M" ie. space M
"L"
"XL"

The multiple spaces don't show up in the rendered page but may be applied to the alphabetical sorting.


It would seem simple to change the sorting in getAttributesGroups function in “/classes/Product.php” to attribute_name instead of pa.`id_product_attribute`

Link to comment
Share on other sites

A slight change to my post ... lol

The order of the attributes does not seem to be alphabetical by description, but by as entered... !!

So to change the attribute order all you need to do is adjust the ps_attribute field (remembering this is a primary, index field!)

(Though I am going to have a play just to see if it works now) .. hehe

Andy

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
×
×
  • Create New...