How to Add Price to Attribute In WooCommerce

WooCommerce Add Price to AttributeDo you want to add a price to an attribute? WooCommerce continues to gain popularity in the E-commerce field because you can easily set multiple prices per product. You can achieve this by creating variable products and setting the price for each variant.

It is worth mentioning that variable products use attributes, like price, to generate multiple variations of a single product.

For example, you might be selling a dress that comes in different sizes. You can create multiple different products for the same dress, but we recommend creating one variable product that has size as an attribute.

After that, you can add a price for each variable product.

WooCommerce Add Price to Attribute

In this post, we will show you how you can charge prices for attributes in your WooCommerce store.

You do not need any coding skills to do this. We will explain each step in detail so that you don’t have any problems implementing this solution.

Let’s see how you can achieve this.

Steps to Set Multiple Prices Per Product in WooCommerce

First, we need to create a variable product with a price attribute. The price attribute will have terms that contain the prices for the product we create.

a)    Creating a Variable Product

Here are the steps you need to follow when creating a variable product:

  1. Click on Products
  2. Click on Add New
  3. Give your product a name and description
  4. Scroll down to Product Data, click the drop-down and select Variable Product. This will change the product from a simple product with one price to a variable product, with as many prices as you decide.product data

For you to proceed, you need to set up some attributes to create variations of that particular product.

Read on, as we will walk you through the process. Remember to save your product as a draft and continue with the guide.

b)    Creating Attributes

WooCommerce attributes are the qualities or identifiers for your products. You can use them to create product variations.

Here are the steps you need to follow to create attributes:

  1. Click on Products
  2. Click on Attributes
  3. Add a new Attribute (weight, size, color, etc)attributes
  4. Click on Terms
  5. Add new Terms to populate your attribute (kgs, small, medium, large, etc)

c)    Adding Attributes to Your Product

If you want to add attributes to your products, return to the product you saved as a draft earlier.

Here are the steps that you need to follow:

  1. Click Custom Product Attribute
  2. Select the Attribute you created above
  3. Click Add
  4. Check Visible On Product Page and Use For Variations
  5. Click on Value and click all the terms you’d like to useadd attributes
  6. Click Save Attributes

d)    Populating Your Variations

The next step is to create the product variations so that we can set up WooCommerce multiple prices per product.

Here are the steps you need to follow:

  1. Click on the Add variation dropdown
  2. Select Create Variations from all attributes
  3. Click Go
  4. This is the outcome if you have followed the steps correctly:variations
  5. The next step is to configure your variable products with a price, SKU, and any other information. Click the small drop-down arrow to the right of a variation to configure it.variation price
  6. Once you are done, click on Publish
  7. This is the outcome:outcome frontend

Conclusion

By now, you should be able to set prices for your attributes. WooCommerce provides you with an easy solution to implement this.

If you need advanced per product rules, we recommend using a plugin. If you are not sure what to do, please contact a qualified WordPress developer.

Similar Articles

  1. 100+ Tips, Tricks & Snippets Ultimate WooCommerce Hide Guide
  2. How to Hide Out of Stock Visibility In WooCommerce