How to Use Product Attributes in WooCommerce


As discussed in the full guide about adding products in WooCommerce, Attributes can be used for important product distinctions such as color or size as well as providing more technical information about your products and setting variables. In this article, you'll learn more about how to use product attributes in WooCommerce.

Attributes function similarly to Categories in WordPress. However, in this case Attributes are applied to Products as Cateogories are assigned to Posts or Pages in WordPress.

Using Predefined Attributes or Custom Attributes, How to Decide?

WooCommerce allows you to set global attributes that can be applied later to any new or existing products. For example, a common predefined attribute for a clothing store would be sizes. Instead of setting a size attribute for each new product, you can have Size predefined as a repeating attribute.

Conversely, custom attributes can be created as needed. For example, if you are selling "Smasho" available in three varieties of "Heat" — regular, hot, and boiling â€” then a custom, non-repeating attribute will meet your needs. Of course, setting a custom "Heat" attribute assumes that "Smasho" is the only product available with a "Heat" attribute.

If you eventually have many products requiring the same custom attribute then you may want to consider predefining the repeating attribute.

How to Add Predefined Attributes to Your Store

In your WordPress admin panel find the Products tab and choose Attributes below.

You will see the Add New Attribute interface.

    1. Under Name fill in the name of the attribute
    2. For Type you can choose Select or Text. Select will allow pre-configured values to display automatically in a dropdown menu. Text will allow you to manually enter values later.
  1. If you chose Select for Type you may now select your attribute to configure the attribute values. You will notice the attribute you created in the table at the top right of the Add New Attribute window.Click Add Attribute

To add the attribute values:

  1. Choose your new attribute at the top right
  2. Under Add New ___ name the value
  3. Click Add New ___ at the bottom

How to Add Custom Attributes to Individual Products

As discussed above, you may find it preferable to assign a custom attribute to a unique product as needed rather than going through the above-described procedure of setting pre-configured attributes.

For example, your store may sell a variety of different items that do not share common attributes. For those types of products you can set custom attributes in the Product Data menu.

    1. Go to your WordPress admin panel
    2. Select a product or Add New Product
    3. Scroll down to the Product Data section
    4. Click Attributes
    5. The dropdown menu for "Custom product attribute" is already selected
    6. Click Add
    7. Name your Attribute and add your values. Make sure to separate each value with a pipe (|). For example: Small | Medium | Large
  1. Click Save Attributes

Did you find this article useful?



  • Server Recommendations

    The first step in setting up your WooCommerce-powered online store is to install WordPress and the WooCommerce plugin itself. But before doing so, you...

  • Installing WooCommerce

    If you have an existing site and want to install WooCommerce, using the WordPress Admin is the most straightforward option as it handles everything fo...

  • Uninstalling WooCommerce

    There are two things to understand when uninstalling or removing WooCommerce. If you deactivate and delete the plugin from WordPress, you...

  • Updating Woocommerce

    Updates to WooCommerce, Storefront, WordPress, and your extensions and payment gateways are a fact of life. Our team of developers are hard at wo...

  • Installed Database Tables

    WooCommerce installs some custom tables to store its data during install. More about tables installed: https://github.com/woocommerce/woocommerce/wiki...