1. Home
  2. Blog
  3. How to Add Variable Products in WooCommerce

How to Add Variable Products in WooCommerce

To add a variable product in WooCommerce, create a color or size attribute under Products › Attributes, set the product type to Variable product and enter a price and stock for each option on the Variations tab. In this article, we walk you step by step through attribute settings, bulk actions and variation images.

By meomanWordPress since 2008

Defining Product Attributes

To add a variable product in WooCommerce, first create an attribute such as “Color” or “Size” and its terms under Products › Attributes. Then, on the Products › Add New screen, select the Variable product type in the Product data box, add the attribute on the Attributes tab and tick “Used for variations”; finally, create the variations on the Variations tab and enter a price for each one, because a variation without a price is not shown in the store. Keep in mind that attributes are not just labels; they are also a source of structured data (schema markup) for search engines.

When defining attributes, you need to choose between global and product-specific options. Global attributes can be used across your entire site (for example, the same size chart for all T-shirts), while product-specific (custom) attributes apply only to that specific stock unit. Only global attributes can be used in store filters and can have an attribute archive; product-specific attributes do not offer these options.

When naming attributes and entering terms, use customer-friendly language. For example, adding specific terms such as “Midnight Blue” or “Anthracite” under the main “Color” attribute increases the chance that customers find the product they are looking for. Attribute terms are not added to the product URL; if the attribute archive is enabled, global attribute terms get their own listing page.

  • Create global attributes to build a consistent structure across all product categories.
  • Arrange attribute terms (Black, Red, XL, etc.) in a logical, hierarchical order.
  • Enable attribute archives to create dedicated landing pages for each attribute.

What to Watch for When Managing Attributes

  1. Keep the slug of each attribute short and keyword-focused.
  2. Set the sort order to “Custom ordering” for manual control.
  3. Decide strategically whether attributes should be visible on the product page.
FeatureSimple ProductVariable ProductAdvantageTrend
Price structureSingle priceVaries by optionFlexible profit marginDynamic pricing
Inventory managementShared stockSeparate for each optionPrecise inventory trackingAI-assisted forecasting
Visual presentationFixed galleryChanges with the selected colorHigher conversion3D and AR integration
SEO impactLowHigh (specific searches)Targeted trafficVoice search optimization
User experienceLimitedPersonalizedCustomer satisfactionHyper-personalization

Selecting Variable Product in the Product Data Box

Selecting “Variable product” from the “Product data” dropdown on the add product screen switches the system into its advanced data entry mode. Once you make this selection, tabs such as Inventory and Shipping can be customized for individual variations. With this product type, the price field on the General tab disappears and a Variations tab appears; prices are entered separately for each variation.

When you select a variable product, the WooCommerce dashboard gives you new tabs and capabilities. Instead of entering a single price, you can now set different cost and sales strategies for each combination. This ensures financial accuracy, especially in industries where raw material costs vary by color or size.

At this stage, planning your SKU (stock keeping unit) structure is vital. While the parent product has an SKU, each variation should have a derived code linked to that parent code. This is a technical requirement for warehouse management and shipping integrations to work without errors.

  • Select “Variable product” from the product type menu.
  • Gain flexibility by moving stock management from the product level to the variation level.
  • Set the tax class separately for each option to stay legally compliant.

Creating Variations Automatically and Manually

After adding attributes, you can add all combinations at once with the “Generate variations” button on the “Variations” tab. This reduces manual entry errors for products with many color and size options. The button creates up to 50 variations per run (the WC_MAX_LINKED_VARIATIONS constant); for more, you need to click it again.

The automatic method matches all existing attributes with each other. For example, if you have 3 colors and 3 sizes, the system creates 9 variation rows in seconds. This method speeds up data entry and ensures no combination is missed.

Adding variations manually is preferred for more niche, specialized products. If only certain combinations are available for sale (for example, if blue is only produced in “Large”), adding them manually avoids unnecessary data clutter. This is a healthier approach in terms of database optimization.

  • Save time by generating all available attribute combinations automatically.
  • Guide shoppers by setting default form values for variations.
  • Avoid confusion by removing combinations that are out of stock or not produced.

Variation Strategies

  • Assign prices to all variations at once using the bulk actions menu.
  • Remember to tick the relevant boxes for virtual or downloadable variations.
  • Use drag and drop to sort variations by bestsellers.
Related serviceWooCommerce Expert

Entering Individual Data and Prices for Each Variation

Each variation should have its own SKU, price, weight and stock status. In e-commerce, customers expect to see price and stock information that updates instantly for every option they select. In your pricing strategy, this is where you can set up scenarios such as larger sizes costing more or special colors selling at a premium.

Entering data per variation gives you plenty of room to maneuver during promotions. If you only want to clear stock of one particular color, you can set a variation-specific “Sale price” and an end date. This lets you run micro-level marketing without affecting the entire product page.

You also need to enter dimensions and weight for each variation so shipping costs can be calculated. Especially if you sell furniture or heavy industrial products, weight differences between variations can cause large deviations in shipping fees. Entering this data completely ensures that the correct cost is shown to the customer at checkout.

  • Digitize your logistics by assigning a unique SKU to each variation.
  • Plan sale prices per variation to build stock clearance strategies.
  • Enter shipping dimensions separately for each option to minimize shipping cost errors.

When a customer selects a color, having the main product image switch to that color automatically is one of the most important factors for maximizing conversion rates. Mismatched images are considered a technical shortcoming that increases return rates and damages customer trust. Static images are gradually being replaced by interactive media.

Each variation should have its own main image. By default, WooCommerce provides an image upload field in each variation row. The image uploaded there replaces the main product image when the user makes a selection. For a smooth transition, all variation images must have the same size and aspect ratio.

For an enhanced user experience, you can use “variation gallery” plugins. With these plugins, not only the main image but all supporting images for that color of the product (side, back and detail shots) change dynamically. This level of visual presentation leaves customers nearly as well informed as if they had seen the product in person.

  • Upload a high-resolution, optimized image for that option to each variation box.
  • Edit image “alt” text to match the variation name so you appear in image search results.
  • Prefer WebP images to keep page load times in the millisecond range.

Bulk Actions and Productivity Tools

In a store with hundreds of variations, updating prices or stock one by one is not a sustainable way to work. WooCommerce’s bulk editing tools can significantly reduce the operational workload. Fast data management is key to staying ahead of the competition.

The dropdown on the Variations tab includes bulk commands such as “Set regular prices”, “Set stock” or “Increase sale prices”. These commands are applied to all selected variations at once. For example, if you need to raise all T-shirt prices by 10%, it only takes a few seconds.

For more complex tasks, use CSV-based import/export. Editing thousands of variations in a spreadsheet and importing them back is much safer and faster than manual data entry. This method also lets you integrate stock lists from suppliers into your store right away.

  • Respond quickly to market changes with bulk price increase or discount functions.
  • Update stock status for all variations with a single command to avoid “out of stock” errors.
  • Automate bulk attribute changes and image assignments with advanced plugins.

Source: WooCommerce: Variable products documentation

Variation SEO and User Experience Optimization

In WooCommerce, variations do not have their own page or meta description; they are all shown at the parent product URL, with parameters such as ?attribute_pa_color=blue once a selection is made. That is why you should use search terms such as “blue” or “XL” in the product title, description and variation descriptions.

On the user experience side, using visual swatches instead of standard dropdowns has now become standard practice. Clicking a blue circle instead of reading the word “Blue” reduces cognitive load and speeds up the purchase decision. On mobile devices, these visual elements must be large enough to tap easily with a finger.

How variation data is loaded also affects page speed. AJAX-based variation loading fetches only the data that changes without reloading the entire page, giving users a seamless experience. This technology minimizes bounce rates, especially among mobile users with slow internet connections.

  • Enrich product details using variation-specific description fields.
  • Make the selection process visual with user-friendly “swatches” interfaces.
  • Optimize variation data with asynchronous loading to protect page load speed.

Source: Google: Product variant structured data

Frequently Asked Questions

What is the difference between a variable product and a simple product?

A simple product offers a single option, while a variable product brings together multiple options, such as color and size, on one page.

How many variations will slow down my site?

For products with more than 30 variations, WooCommerce loads variation data via AJAX as selections are made instead of embedding it in the page; hundreds of variations can slow down the admin dashboard.

Can each variation have a different price?

Yes, WooCommerce lets you set a completely independent regular price and sale price for each variation.

Why aren’t my variation images showing?

If no image has been assigned in a variation’s own settings panel, the system keeps showing the main product image.

How do I update variations in bulk?

You can update all prices and stock levels at once with the bulk actions menu on the “Variations” tab of the product edit page.

In summary
Combined with the right attribute setup and image optimization, WooCommerce variation management is a core technical process that increases your online store’s conversion rates and operational efficiency. For a modern store, treating each variation as an independent data unit and presenting it to customers with visual swatches is essential for success.