A
A
alexiusgrey2022-03-11 21:50:07
WooCommerce
alexiusgrey, 2022-03-11 21:50:07

How can you sort the variations in a different order in each individual product?

I know about the type method as for sizes - sort in "random order" and drag in the attribute values ​​​​in this very desired order.

But I have another task. I need to display, for example, in one product so that the first is red, the second is yellow, the third is blue, and in the other it can be vice versa - so that the first is yellow, the second is purple, the third is green, etc.

I drag and drop variations in places in the product in the "variations" tab, put them up and down as I need, but it is still displayed in the card in alphabetical order - white, green, red for example. It doesn't suit me that way.

Is there a code snippet to fix the display of variation in an individual product in random order?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question