To add a variable product, create a new product or edit an existing one.
- Go to: WooCommerce > Products.
- Select the Add Product button or Edit an existing product. The Product Data displays.
- Select Variable product from the Product Data dropdown.
Add Attributes to Use for Variations
In the Attributes section, add attributes before creating variations — use global attributes that are site-wide or define custom ones specific to a product.
Global Attributes
To use a global attribute on your product:
- First create a global attribute.
- Then you can choose said global attribute from the dropdown and select Add.
- Choose Select all to add all values from to the variable product (if applicable).
- Most importantly select the Used for variations checkbox to use these for variations.
- Select Save attributes.
Custom Attributes
To add a new attribute specific to this product:
- Select Custom product attribute and click Add.
- Name the attribute (e.g., Size).
- Set values separated by a vertical pipe, | (e.g., Small | Medium | Large).
- Enable the Used for variations checkbox.
- Select Save attributes.
Add Variations
With attributes created and saved to add a variation, go to the Variations section in the Product data meta box.
Manually Add a Variation
- Select Add variation from the dropdown menu, and select Go.
- Select attributes for your variation. To change additional data, click the triangle icon to expand the variation.
- Edit any available data. The only required field is Regular Price.
- Select Save changes.
Creating All Possible Variations
Select Create variations from all attributes to have WooCommerce create every possible combination of variations from your attributes and their values and select Go:
It will create a new variation for each and every possible combination of variation attributes (max 50 per run). If you have more possible combinations you can run it again.
For example, if you have two attributes – color (with values blue and green) and size (with values large and small) it creates the following variations:
- Large Blue
- Large Green
- Small Blue
- Small Green