Today’s Ask Sell with WP question comes from Alisha:
Is there a way to create a set of variations that are shared among several products in WooCommerce? I’ve been creating attributes for each of my products, then linking them to make variations. I just want to know if there’s a way to speed this up so I can automatically pull in sizes, etc.
Yep, you can absolutely do this! This will make it really fast to add them to products, then you can just click “Link Variations” to create your variations from this.
Setting up Attributes
If you go to Products > Attributes, you’ll be able to add default attribute sets.
Enter a Name for your attribute, which will be displayed on the product page. I usually make my slug the same thing as my name, but with dashes instead of sentences. Then you’ll want to select the type – I usually choose “Select”. This will allow you to simply select which attributes apply when creating your products. If you select “Text”, this will just create a placeholder attribute and you’ll have to enter all of the values for your attribute on the product page. For example, I do use this occasionally for color. I use a “Text” type, then on the product page, I enter the applicable colors (like
Blue | Red | Green, etc).
Finally, set your default ordering. I usually leave this as “Custom” so I can drag and drop attributes into the order that I choose, but you can also sort by name or term ID.
Once you’ve added the attribute, you may want to add some terms (if you’re using a “Select” type) so that these will be available on the product page. You can do so by clicking the cog icon for the term:
When you click this, you’ll be able to add your terms for the attribute. For example, if your attribute is “Size”, your terms are “Small”, “Medium”, etc.
When you’ve added your terms, drag-and-drop them if you’re using custom ordering, and you’re done! You can add more attributes if you’d like, but now these will be available on the product page.
Using your Attributes
Now that your attributes are set up, you’ll be able to access them when creating or editing products. They’re under “Product Data > Attributes”:
You can now easily add these attribute sets to products. If you add a default attribute set, you’ll be able to enter all of the terms that apply to this product. If you’ve created a “Select” type, you can add all terms, or add them as needed:
If you’ve created a “Text” type, you’ll need to enter the applicable terms.
Select or add any attribute terms that apply and that they should be used for your variations. You can repeat this with any default attribute set, then when your attributes are added, link these to easily create your variations!
Have your own question? You can submit it here.