A variable product in WooCommerce is ideal if you sell the same item in multiple versions, such as size or color. Instead of creating separate products, you work with attributes and variations within a single product page. Below you’ll find a step-by-step guide on how to set this up, from attribute to stock management per variation.
What is a variable product
A variable product consists of a main product with multiple variations that differ in, for example, color, size, or material. Each variation can have its own price, stock, weight, and image. This saves a lot of management compared to separate products, and customers see everything neatly together on one product page.
WooCommerce distinguishes between an attribute (the property, such as color) and a variation (the specific combination, such as red in size M). You first set up the attributes and then generate the variations.
Setting up attributes
In WooCommerce, go to Products and open the desired product or create a new one. Under Product data, select Variable product. Then go to the Attributes tab.
You can add a custom attribute (for example, directly on the product) or use a global attribute that you manage via Products > Attributes. Global attributes are handy if you use the same property, such as color, across multiple products. Enter the attribute values, separated by a vertical bar, and check Used for variations. Don’t forget to save.
Creating variations
After saving the attributes, go to the Variations tab. Here you choose whether to automatically generate variations based on all attribute combinations, or add variations manually.
Generating variations
Click Create variations from all attributes. WooCommerce automatically creates a row for each combination.
Price and stock per variation
Expand each variation and fill in the regular price, any sale price, and stock quantity. If you leave fields blank, WooCommerce will use the main product’s settings.
Adding image and weight
Add a unique image per variation so customers can immediately see which color or version they’re viewing. Also fill in weight and dimensions if you calculate shipping costs by weight.
Saving and checking
Click Save changes and view the product page on the front end of your site. Check that all combinations are correctly selectable and that the price changes properly.
Common mistakes
A common issue is that variations aren’t visible because Used for variations wasn’t checked for the attribute. Check this first if variations are missing.
Stock management often goes wrong too: if you track stock at the product level but need a different quantity per variation, you need to enable stock management separately for each variation. Also watch out for empty price fields; a variation without a price cannot be ordered, even if the main product is listed in the store.
Slowness with many variations is often caused by heavy pages and insufficient server resources. On fast infrastructure with NVMe storage and LiteSpeed, such as Tandata’s web hosting, a product page with dozens of variations loads noticeably faster. If you manage your Plesk environment, you’ll easily find PHP settings and caching in the control panel.
If you’re considering switching to a different hosting provider for your WooCommerce store, check out the options to switch to Tandata without downtime.
Frequently Asked Questions
How many variations can I add at most?
Technically there’s no hard limit, but with more than a few dozen variations, management becomes unwieldy and the product page may load more slowly. Keep attributes limited to what customers actually need.
Can I temporarily hide a variation?
Yes, you can set a variation to Out of stock or change its status so it can’t be ordered, without deleting the variation entirely.
Why don’t I see variation options on the product page?
Check whether the product is set as a Variable product, whether attributes were saved with Used for variations checked, and whether variations have actually been created under the Variations tab.
Can I set different email notifications per variation?
WooCommerce doesn’t offer this by default, but you can extend stock notifications via plugins. Make sure order confirmations are sent via a reliable business email solution, so customers and you always receive notifications.
Do I need a separate domain or subdomain for each variation?
No, variations belong to a single product page on your existing domain. Just make sure your domain name is correctly linked to your hosting, so the store is always accessible.
Conclusion
Variable products in WooCommerce give you the flexibility to manage product variations clearly within a single product page. By carefully setting up attributes, correctly generating variations, and checking prices and stock per variation, you prevent most issues. If your store runs slowly with many variations, it’s often due to the underlying hosting.