Paramclasses Academy - Blog

Tutorials Details

←
Post 26 of 40
→

How to Add Products, Categories and Product Variations in WooCommerce ?

How to Add Products, Categories and Product Variations in WooCommerce ?

November 16, 2026

1. Introduction

In the previous tutorial, we created a basic online store using WooCommerce.

Now we will learn how to manage the product catalog professionally.

A successful e-commerce website needs properly organized products, meaningful categories, and flexible product options. WooCommerce provides these features through its product management system.

In this tutorial, we will learn:

  • How to add and edit WooCommerce products.

  • How to create product categories and subcategories.

  • How to use product tags.

  • How to create global product attributes.

  • How to create variable products.

  • How to generate product variations.

  • How to configure different prices, images, SKUs, and stock quantities for variations.

  • How to test product variations on the frontend.

Official documentation: WooCommerce Product Management

2. Understanding WooCommerce Product Organization

Before adding products, understand three important WooCommerce concepts.

A. Product Categories

Categories organize products into broad groups.

For example, an electronics store may contain:

  • Electronics

    • Smartphones

    • Laptops

    • Headphones

    • Accessories

Categories are hierarchical, which means you can create parent categories and child categories.

B. Product Tags

Tags describe specific characteristics of products.

For example, a headphone product might have these tags:

  • Wireless

  • Bluetooth

  • Noise Cancelling

  • Premium Audio

Unlike categories, tags do not have a parent-child hierarchy.

C. Product Attributes

Attributes describe product characteristics and can be used to create variations.

Examples:

  • Size: Small, Medium, Large, XL.

  • Color: Black, White, Blue, Red.

  • Storage: 128GB, 256GB, 512GB.

  • Material: Cotton, Polyester, Leather.

Attributes can also help customers filter and compare products.

Important Difference:

Categories organize products into groups, tags provide additional descriptors, and attributes define structured product characteristics. Attributes become especially important when creating variable products.

Official documentation: Managing Product Categories, Tags and Attributes

3. Create Product Categories in WooCommerce

Let's create a category structure for our practice store.

Step 1: Open the WordPress Dashboard

Log in to your WordPress admin panel.

Step 2: Navigate to Product Categories

Go to:

Dashboard → Products → Categories

You will see a page containing an Add New Category form and a list of existing categories.

Step 3: Create a Parent Category

Enter the following information:

Name: Electronics

Slug: electronics

Parent category: None

Description: Electronic products and accessories for everyday use.

Click Add New Category.

Your Electronics category is now created.

Step 4: Create a Child Category

Create another category using these details:

Name: Headphones

Slug: headphones

Parent category: Electronics

Description: Wired and wireless headphones.

Click Add New Category.

Now Headphones is a child category of Electronics.

Step 5: Create More Categories

You can create additional categories such as:

  • Smartphones

  • Laptops

  • Computer Accessories

  • Smart Watches

Choose the appropriate parent category for each one.

Understanding Category Slugs

A slug is the URL-friendly version of a category name.

For example:

Category name: Headphones

Slug: headphones

A category URL may look like:

https://yourdomain.com/product-category/electronics/headphones/

The actual URL structure depends on your permalink and category base settings.

4. Add a New Product in WooCommerce

Now let's create our first product.

Step 1: Open Add New Product

Navigate to:

Dashboard → Products → Add New

Step 2: Enter the Product Name

For this example, enter:

Premium Wireless Headphones

Step 3: Add a Product Description

Use the main description editor to provide detailed information.

Example:

Premium Wireless Headphones are designed for comfortable everyday listening. They offer a modern design, wireless connectivity, clear audio, and a comfortable fit for music, entertainment, and online meetings.

Step 4: Select Product Category

In the Product categories panel, select:

Electronics → Headphones

If the category does not exist, you can also create a new category from this panel.

Step 5: Add Product Tags

In the Product tags panel, enter:

Wireless, Bluetooth, Premium Audio

Add the tags to the product.

Step 6: Add Product Image

Find the Product image panel.

Click Set product image.

Upload a suitable product photograph or choose an existing image from the Media Library.

You can also add more photographs through the Product gallery panel.

Step 7: Select Product Type

Find the Product data section.

You will see a dropdown containing product types such as:

  • Simple product

  • Grouped product

  • External/Affiliate product

  • Variable product

For this example, we will create a variable product in the next sections.

For a basic product without variations, select Simple product.

Official documentation: How to Add a WooCommerce Product

5. Understand Global and Custom Attributes

WooCommerce provides two ways to create product attributes.

A. Global Attributes

Global attributes are created once and can be reused across multiple products.

For example, an online clothing store can create:

  • Size

  • Color

  • Material

You can reuse these attributes for shirts, trousers, jackets, and other products.

Global attributes are recommended when multiple products share the same characteristics.

B. Custom Product Attributes

Custom attributes are created directly inside an individual product.

For example, a special handmade product might have a unique attribute called Handmade Design.

This attribute belongs to that particular product and is not automatically available as a reusable global attribute.

For our practice project, we will create global attributes.

6. Create Global Product Attributes

Step 1: Open Product Attributes

Navigate to:

Dashboard → Products → Attributes

You will see an Add New Attribute section.

Step 2: Create the Size Attribute

Enter:

Name: Size

Slug: size

Leave the remaining options at their default values unless your store requires something different.

Click Add Attribute.

Step 3: Configure Size Terms

After creating the attribute, find the Configure terms option next to Size.

Open it and add the following terms:

  • Small

  • Medium

  • Large

  • XL

Each term represents a selectable size.

Step 4: Create the Color Attribute

Return to:

Dashboard → Products → Attributes

Enter:

Name: Color

Slug: color

Click Add Attribute.

Step 5: Configure Color Terms

Open Configure terms for Color.

Add these terms:

  • Black

  • White

  • Blue

You now have two reusable global attributes:

  • Size

  • Color

These attributes can be assigned to multiple products.

7. Create a Variable Product

A variable product allows customers to choose between different options of the same product.

For example, a T-shirt may be available in:

  • Small, Medium, and Large sizes.

  • Black, White, and Blue colors.

Instead of creating a separate product for every combination, WooCommerce lets you manage them under one parent product.

For our practical example, we will create:

Product Name: Premium Cotton T-Shirt

Available Sizes: Small, Medium, Large

Available Colors: Black, White

This combination creates six possible variations:

  1. Small – Black

  2. Small – White

  3. Medium – Black

  4. Medium – White

  5. Large – Black

  6. Large – White

Each variation can have its own price, SKU, image, and inventory settings.

8. Configure the Variable Product

Step 1: Add a New Product

Navigate to:

Dashboard → Products → Add New

Enter the product name:

Premium Cotton T-Shirt

Add a detailed product description.

Step 2: Select Variable Product

Scroll to the Product data section.

Open the product type dropdown and select:

Variable product

The available configuration tabs will change to support variable product settings.

Step 3: Open the Attributes Tab

Click:

Product data → Attributes

You can now add existing global attributes.

Step 4: Add the Size Attribute

Select Size from the Add Existing dropdown.

Choose these values:

  • Small

  • Medium

  • Large

Enable the following checkboxes:

  • Visible on the product page.

  • Used for variations.

The second option is essential because it makes the attribute available for creating product variations.

Step 5: Add the Color Attribute

Select Color from the Add Existing dropdown.

Choose:

  • Black

  • White

Enable:

  • Visible on the product page.

  • Used for variations.

Step 6: Save Attributes

Click Save Attributes.

Your product now contains two attributes:

  • Size: Small, Medium, Large.

  • Color: Black, White.

9. Generate Product Variations

Now we will generate the six combinations automatically.

Step 1: Open the Variations Tab

Navigate to:

Product data → Variations

Step 2: Generate Variations

Find the variation actions dropdown.

Select:

Generate variations

Click Go or the corresponding action button displayed by your WooCommerce version.

WooCommerce will generate the possible combinations using the selected attributes.

For our example:

3 sizes × 2 colors = 6 variations.

Step 3: Understand Generated Variations

You should now see six variation entries.

Each entry represents a unique product combination.

For example:

  • Small / Black

  • Small / White

  • Medium / Black

  • Medium / White

  • Large / Black

  • Large / White

Important: Generating variations does not automatically configure their prices, stock quantities, and other details. You must review and configure those fields.

10. Configure Individual Variation Prices

Each variation can have a different price.

For our practice project, use these sample prices:

  • Small – Black: ₹499

  • Small – White: ₹499

  • Medium – Black: ₹549

  • Medium – White: ₹549

  • Large – Black: ₹599

  • Large – White: ₹599

Step 1: Expand a Variation

Click the first variation to open its settings.

Step 2: Enter Regular Price

Enter the appropriate regular price.

For Small – Black, enter:

499

Step 3: Configure Other Variation Details

Depending on your requirements, configure:

  • Sale price.

  • SKU.

  • Stock status.

  • Stock quantity.

  • Weight.

  • Dimensions.

  • Variation description.

  • Variation image.

Step 4: Repeat for Other Variations

Configure the remaining five variations using the sample prices above.

Step 5: Save Changes

Click Save Changes in the Variations section.

If a variation does not have a valid price, it may not be purchasable. Make sure every variation intended for sale has the required price and availability settings.

11. Add Images to Individual Variations

Different product variations may have different images.

For example:

  • Black T-shirt: Black T-shirt photograph.

  • White T-shirt: White T-shirt photograph.

Follow these steps:

  1. Open the Variations tab.

  2. Expand the required variation.

  3. Find its image field.

  4. Click the image placeholder.

  5. Upload or select the correct photograph.

  6. Save the variation changes.

When customers select a variation, WooCommerce can display its associated image on the product page.

The exact image-switching behavior also depends on your active theme and frontend configuration.

12. Configure Variation Inventory

WooCommerce allows you to manage stock at the parent product level or separately for individual variations.

For products where different options have different stock quantities, variation-level stock management is useful.

For example:

Small – Black: 10 units.

Small – White: 8 units.

Medium – Black: 15 units.

Medium – White: 12 units.

Large – Black: 7 units.

Large – White: 9 units.

To configure inventory:

  1. Open Product data → Variations.

  2. Expand a variation.

  3. Enable Manage stock if you want to track its individual quantity.

  4. Enter the stock quantity.

  5. Check the stock status.

  6. Save changes.

Do not enable conflicting stock management approaches without understanding how parent and variation inventory settings interact.

13. Set Default Product Variations

You can configure default options so customers see a preselected combination when opening the product page.

For example:

Default Size: Medium

Default Color: Black

Navigate to:

Product data → Variations

Find the Default Form Values section, if available in your product editor.

Select the desired default attributes and update the product.

When a customer opens the product page, WooCommerce can automatically select the configured default options.

This improves the shopping experience, especially when a product has several variations.

14. Understand the Customer Experience

After publishing the variable product, open it on the frontend.

Customers should be able to:

  1. View the product name and description.

  2. Select a size.

  3. Select a color.

  4. See the matching variation information.

  5. Review its price and availability.

  6. Add the selected variation to the cart.

For example:

A customer selects:

Size: Large

Color: Black

WooCommerce identifies the matching variation and displays its configured product information.

The customer can then add that specific variation to the cart.

If a required option has not been selected, WooCommerce will normally ask the customer to choose it before adding the product to the cart.

The appearance of dropdowns, buttons, and color swatches depends on your theme and any additional variation-display extensions.

15. Edit and Manage Existing Products

You can update product information whenever required.

Navigate to:

Dashboard → Products → All Products

Find the product you want to edit.

Click Edit.

You can update:

  • Product title.

  • Product description.

  • Product category.

  • Product tags.

  • Product image.

  • Regular price.

  • Sale price.

  • Product attributes.

  • Variations.

  • Inventory.

After making changes, click Update.

Always verify that the updated product works correctly on the frontend.

16. Common WooCommerce Product Problems

Problem 1: Product Variations Are Not Displaying

Possible causes:

  • Attributes were not saved.

  • Used for variations was not enabled.

  • Variations were not generated.

  • The product was not updated.

Solution:

Open the Attributes tab, verify the settings, save the attributes, and review the Variations tab.

Problem 2: Variation Price Is Not Displaying

Possible causes:

  • A variation has no regular price.

  • The variation is disabled.

  • The variation is not properly configured.

Solution:

Expand each variation and verify its price and enabled status.

Problem 3: Customer Cannot Add Product to Cart

Possible causes:

  • Required attributes are not selected.

  • The selected variation is out of stock.

  • The variation is disabled.

  • The variation has incomplete configuration.

Solution:

Check the variation settings, stock status, and product availability.

Problem 4: Product Category Is Not Displaying

Possible causes:

  • The product has not been assigned to the category.

  • The category is empty.

  • The theme is not displaying categories in the expected location.

Solution:

Edit the product, select the correct category, and verify the frontend layout.

Problem 5: Wrong Product Image Appears

Possible causes:

  • Incorrect variation image assignment.

  • Cached product information.

  • Theme or extension compatibility issues.

Solution:

Check the image assigned to each variation, save the product, and clear the relevant cache.

17. Best Practices for WooCommerce Product Management

  • Use clear and descriptive product names.

  • Organize products with meaningful categories.

  • Avoid creating unnecessary duplicate categories.

  • Use consistent attribute names across products.

  • Prefer global attributes for reusable product options.

  • Assign unique SKUs where appropriate.

  • Configure stock quantities accurately.

  • Upload high-quality product photographs.

  • Use descriptive image filenames and alternative text.

  • Check every variation before publishing.

  • Test product selection on mobile devices.

  • Keep WooCommerce and related extensions updated.

For products with many attributes, carefully review the total number of generated combinations. Generating every possible combination may create unnecessary variations if some combinations are not actually sold.

18. Practical Assignment

Create a product catalog for your practice store.

Project Name: Param Fashion Store

Task 1: Create Categories

Create the following category structure:

  • Fashion

    • Men's Clothing

    • Women's Clothing

    • Accessories

Task 2: Create Global Attributes

Create these global attributes:

Size:

  • Small

  • Medium

  • Large

Color:

  • Black

  • White

  • Blue

Task 3: Add a Variable Product

Product Name: Premium Cotton T-Shirt

Category: Men's Clothing

Product Description: Comfortable premium cotton T-shirt available in multiple sizes and colors.

Task 4: Configure Variations

Generate the combinations using:

  • Small – Black

  • Small – White

  • Small – Blue

  • Medium – Black

  • Medium – White

  • Medium – Blue

  • Large – Black

  • Large – White

  • Large – Blue

You should have nine variations.

Task 5: Configure Prices

Use the following sample prices:

  • Small variations: ₹499

  • Medium variations: ₹549

  • Large variations: ₹599

Task 6: Configure Inventory

Assign different stock quantities to the variations.

Task 7: Upload Images

Upload suitable product photographs and assign variation images where required.

Task 8: Test the Product

Open the frontend and verify:

  • Size selection.

  • Color selection.

  • Variation price.

  • Product image.

  • Stock availability.

  • Add to Cart functionality.

Expected Result: A properly organized WooCommerce product catalog with categories, global attributes, and a fully configured variable product.

19. Frequently Asked Questions

Q1. What is a WooCommerce product category?

A product category is a way to organize similar products into groups, such as Electronics, Clothing, and Accessories.

Q2. What is the difference between product categories and tags?

Categories organize products hierarchically, while tags provide additional non-hierarchical descriptions.

Q3. What are product attributes?

Attributes are product characteristics such as size, color, material, and storage capacity.

Q4. What is a variable product in WooCommerce?

A variable product allows customers to select different options of one product, such as size and color.

Q5. What is the difference between global and custom attributes?

Global attributes can be reused across multiple products, while custom attributes are created for an individual product.

Q6. Can every variation have a different price?

Yes. WooCommerce allows each variation to have its own regular price and sale price.

Q7. Can every variation have a different image?

Yes. You can assign a separate image to each variation.

Q8. Can every variation have different stock quantities?

Yes. You can enable stock management at the variation level and configure individual stock quantities.

Q9. How many variations can WooCommerce create?

WooCommerce can generate combinations from selected attribute values. However, the practical number of variations depends on server resources, product complexity, and frontend performance.

Q10. Can I edit a product after publishing it?

Yes. Open Products → All Products, select Edit, make the required changes, and click Update.

20. Conclusion

In this tutorial, we learned how to manage products professionally in WooCommerce.

We created product categories and subcategories, added products, configured product tags, created global attributes, generated variable product combinations, and configured individual variation prices, images, and inventory.

Product organization and variation management are essential parts of a professional e-commerce website. Proper configuration helps customers find products easily and select the options they actually want to purchase.

←
Post 26 of 40
→