Sorting variant dropdown menu

Shopify Partner
7 0 2

Hi All!

I am in the process of opening an online fitness supplement store but I am facing an issue with the order that variants are being displayed in the variant drop down menu.  Take this popular product below as an example.  Notice how the variant drop down options are all over the place in terms of name and sizes.  I can foresee many incorrect orders being placed because of this.  At the very least, I'd like to be able to sort by alphabetical order to "group" the flavors together and then they would be sorted by size by default.  Does anyone have any handy code I can drop in to sort the variant list automatically?  I realize this can be controlled by the variant order in the Admin product controls, but rearranging variants for 5,000+ products is just not possible for me.

 

Thanks in advance!

-Mike

0 Likes
Highlighted
Tourist
9 0 2

I see the question but I can't see any of the responses to it

0 Likes