How To Create WooCommerce Custom Product Attributes 
- Last updated on: 4 mins read
WooCommerce product attributes are very useful when creating a shop.
In the last guide, you learned how to create and use Google Product Attributes in WooCommerce. If you haven’t read it already, you may read it here.
In this guide, we will focus on WooCommerce custom product attributes.
The purpose of a custom product attribute is the same – it is used to represent a certain feature of a product. However, unlike global product attributes, a custom attribute is used to define a feature of a specific product; it is not applicable to most other products.
Today, you will get a step-by-step guide on how you can add Custom Product Attributes to your WooCommerce products easily.
So let’s get started.
How To Create And Use A WooCommerce Custom Product Attribute
Unlike global product attributes, a custom product attribute has to be created while adding/editing a product, from within the Product Data section.
Once you follow the steps below, you will then be able to use custom product attributes easily.
So let’s get started.
Go to ‘Products’ from the left menu bar. You can add either a new item or edit an existing one.
1. Edit or Create a Product and scroll down to the Product Data Section.
Here, choose the product type (for example Simple product or Variable Product) and fill out the basic required data in the General, Inventory, Shipping, and Linked Products menus.
2. Go to the Attributes menu.
3. Here, you can see there is a dropdown menu that says Custom product attribute and an ‘Add’ button beside it.
Click on the ‘Add’ button.
4. You will see that a custom attribute section has been created.
The ‘Name’ field refers to the Attribute name, and the ‘Value(s)’ field refers to the Attribute terms. Fill them out as required.
5. Fill out the required values as per your requirements.
Let’s say I am selling a t-shirt that has both Long sleeves and short sleeves. So let’s name it ‘Sleeves’.
For the ‘Value(s)’, you have to add values with a ‘|’ separator. So let’s add the terms ‘Long|Short’.
And on the left side, you can see the option “Visible on the product page”. That is check-marked by default, which means this attribute term will be displayed on the Product page.
If it’s a variable product, then you may wish to use these attribute terms to create variants. In that case, you can mark the check box that says used for variations (right above the Save Attribute button), and later, generate variants from the Variations tab on the left side.
6. Then click on the Save attribute button and this attribute will be saved for this product.
So based on your theme, this attribute will be displayed on the product page.
When Should You Use Custom Product Attributes
As mentioned earlier, a custom product attribute can be created when you edit or add a product in the product data section.
You should use the custom product attribute when you want to define a feature for a product that is applicable to that product only.
For example, if you are selling ‘Organic Tea’ in bulk, you might want to sell them in packs of 10 Sachets, 20 Sachets, and 50 Sachets per order. However, this sort of custom order package might not apply on other products in your WooCommerce store.
In this case, you should use a custom product attribute to define this feature, and possibly use it for variations.
So to conclude, you should create and use custom product attributes when you want to define a feature that applies to a particular product only.
This will save you time from creating a global attribute separately, have help to optimize the use of server resources.
As you can see, it is often more convenient to use a custom product attribute, and hopefully, this guide was easy to follow.
- You can also check out this guide to setup WooCommerce variable products for your store.
Feel free to let us know your thoughts on this guide in the comments below.