auto add product attribute to product when new attribute added
-
I created a custom attribute called colors, however how do automatically add the newly added product attribute (terms) to all the products that uses that attribute.
Eg:
Let say I have created ‘red’,’blue’,’yellow’ to color attributes set. And assigned product 1, product 2, product 3 to this color attribute.
Later, I added new colors ‘black’, ‘grey’ to the color attributes set. However these newly added colors were not assigned to product 1, product 2, product 3,How do I make the new colors available in the old products without manually update the products manually?
What I am thinking is like how wp handle taxonomy terms, when giving the taxonomy name, it will retrieve all it terms. So, likewise, I want to add this attribute to certain product category’s products, instead of adding it manually, I want the attributes added to the category automatically, just with the attribute name/slug. So, next time when I want to remove/add product attribute item, I no longer need to update every product manually.
Is this doable?
- The topic ‘auto add product attribute to product when new attribute added’ is closed to new replies.