Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Product Attribute sort order in drop-down menus


Recommended Posts

Does anyone know how to make product attributes appear in a specific order in the drop-down menus of the product info pages?


I'm creating a shopping cart for a clothing manufacturer and I want sizes and colors to always appear in the same order in the drop down menus. For example, I want sizes to always display in the drop-down menu as follows:







I have setup multiple products and some display Small, X-Large, Large, Medium while others display in the correct order as defined above.


Thanks for your help.

Link to comment
Share on other sites

I figured it out. Within catalog\product_info.php, I added an order by statement to the query: order by pov.products_options_values_id, so the attributes will sort by the option value.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...