Website Building » WooCommerce » How Do I Create a Product Attribute in WooCommerce?

How Do I Create a Product Attribute in WooCommerce?

Last updated on January 17, 2023 @ 2:41 pm

Product attributes in WooCommerce are used to create variations of a product, and each variation can have a different SKU. You can add as many product attributes as you need, and each one can be used for multiple products.

To add a new product attribute:

  1. Go to: WooCommerce > Products > Attributes.
  2. Add New Attribute. This will bring up the Add New Attribute form.
  3. Name: Enter an internal name for the attribute (this is only used internally – customers will never see this). For example, “color” or “size”.
  4. Slug: Enter an attribute slug to be used in the shop URL.
  5. Type: Select how you want your values to be entered. Choose from select (a dropdown), text (user entered text), or color (a color picker).
  6. Order By: Choose how you want your values displayed on the frontend. Choose from menu order or name.
  7. Default Sort Order: Choose ascending or descending order.
  8. Use values set in advance: You can pre-enter all possible values for this attribute, then choose Set terms. This is useful if you know all the values you want to use ahead of time, such as size or color options. When done, click Add Attribute.

After adding the attribute, you will need to add variation values. These are the actual values that will be shown on the frontend product page.
Conclusion
Product attributes are a great way to offer variations of a product in WooCommerce, and they can be used for multiple products.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.