The size attribute options on my configurable products are not displaying in the correct position on the frontend. They are displaying in the order of product ID instead
I have set the position on the size attribute in the admin panel (i.e. XS is position 1, S is position 2), but this appears to be disregarded on shop frontend. I've already reindexed and flushed all caches.
Is this a known error? How do I fix this?
Best Answer
Meogi has a great fix for this here: Magento 1.9.1 configurable product attribute sorting
Unfortunately I'm using Amasty Color Swatches Pro and that breaks it so I had to come up with another solution.
For now, I am re-sorting the getJsonConfig() object in my configurable.phtml template for the hard-coded size attribute (175):
And then in my JS, I'm calling this:
instead of