I’m looking for a way to sort WooCommerce attribute terms on product level.
Let’s assume we have attribute A, with the attribute terms A1, A2 and A3. The terms can be sorted in a custom order globally, so for example on each product the terms will always display in the custom order A2, A3, A1. However, we want to do this on product level, so for example on product X the terms are displayed as A2, A1, A3, while on product Y the terms are displayed as A3, A2, A1.
While I can assign attribute terms in a custom order to a product, when saving the product the terms will be re-sorted in the global custom order.
Is there a way to disable this re-sorting, or can anyone think of another way how to achieve the desired result? Sorting the output like suggested in /a/55563966/3103254 would not work, as this would result in the same term order for all products.
I have been thinking of adding a custom field that is dynamically populated with all chosen attribute terms and offers the the option to sort these manually, however, that seems a bit over the top and I’d prefer an approach that feels more integrated with standard WooCommerce features, if possible.
Any hint would be much appreciated.