How to Add a Custom Attribute in WooCommerce

Adding an attribute in WooCommerce is quite straightforward. You can go through my explanation and my in-depth tutorial on WooCommerce attribute here.

On the other hand, there’s something called Custom attribute in WooCommerce. Custom attribute is an attribute which is only meant for a particular product in WooCommerce. This custom attribute can’t be used for any other products in a WooCommerce store.

For example, if all this while you are selling t-shirts in your WooCommerce store, some of the attributes the t-shirts should have are Color and Size. But, what if out of nowhere you want to sell a pair of shoes to sort of research how your shoppers react to it? That’s when a custom attribute comes in handy. It allows you to add a new attribute especially for the shoes. This custom attribute will not be registered in the WooCommerce Attributes page.

It will only be visible in the product editing screen of the pair of shoes which you are selling. You can also use it for variations.

And if you delete the product, the custom attribute will be deleted as well.

Here I will show you how to add a custom attribute in WooCommerce.

To begin, you will need to add a new product or edit an existing product in your WooCommerce store.

Then, scroll down to the Product data section and click on the Attributes tab.

woocommerce custom attributes tutorial

Next, select the Custom product attribute option and click Add.

After that, you will see two new fields appear. One of the fields is called Name and the other is called Value(s).

In the Name field, input the name of the custom attribute. For example, if you are selling a pair of shoes, then the name of the custom attribute should be Shoe size.

Under the Value(s) field, input the attribute terms one by one. Separate each term with the vertical bar (|). See the following screenshot for your reference:

Once you are done, click Save attributes.

That’s it! The custom attribute should appear on the product page similar to the way the default attribute appears.

The same way of adding a custom attribute applies for a variable product. And it can also be used for variation.