Jump to content
Sign in to follow this  
Zenith

[SOLVED] Sort color palette and color attributes list alphabetically

Recommended Posts

Has anyone done this yet?

I need to sort the color palette and color list select box by name. Then if an extra color is added it will slot in alphabetically in the list instead of being added last/to the bottom.

tia

Share this post


Link to post
Share on other sites

Can anyone help me with this, really need these sorted alphabetically...

??

Share this post


Link to post
Share on other sites

Solved it myself, if anyone else wants to do this, edit the file classes/Product.php at line 1520.

Change:

        ORDER BY pa.`id_product_attribute`');

To:

        ORDER BY attribute_name, pa.`id_product_attribute`');

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More