I sell hosiery on my Shopify store using the Horizon theme. I import products from eBay via the Reputon app.
After each import, the color variant options appear in a random order on the product page. I cannot reorder them manually because there are too many products.
Is there a way to automatically sort variant options alphabetically on Horizon? Either natively or via a simple workaround?
Change display is good enough for the customers, share you snippet and I will try it. If it’s work fine, I will check solution of course.
Thank you, Hervé
The list at the top (color, colour, couleur) is what it checks against your option name, so your Couleur dominante is already covered. If a product names the colour option something else, add that word to the list.
It only touches options whose name matches, so Taille and every other option keep the order you set.
It re-applies when a shopper switches a size, so the order never jumps back.
Display only. Nothing in your admin or your variant data changes.
Shopify doesn’t currently support automatic alphabetical sorting of variant values. If the import app can’t preserve the order, you’ll likely need a custom theme modification or an app/script to sort the option on a storefront