I have a WooCommerce site with auto-imported products, which refresh them every week. These products have attributes called COLOR
and SIZE
.
However, the COLOR
red has these sub-attributes (for example):
- Crimson Red
- Cola Red
- Puma Red
Normally, I have to manually add and assign these sub-attributes to the "parent RED" attribute and that is a lot of work.
I wonder if there is a way to do this automatically?
For example, IF the attribute contains the word RED, assign it to parent attribute RED.
Thanks.