Do 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:
- Click on Products
- Click on Add New
- Give your product a name and description
- 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.
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:
- Click on Products
- Click on Attributes
- Add a new Attribute (weight, size, color, etc)
- Click on Terms
- 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:
- Click Custom Product Attribute
- Select the Attribute you created above
- Click Add
- Check Visible On Product Page and Use For Variations
- Click on Value and click all the terms you’d like to use
- 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:
- Click on the Add variation dropdown
- Select Create Variations from all attributes
- Click Go
- This is the outcome if you have followed the steps correctly:
- 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.
- Once you are done, click on Publish
- This is the outcome:
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
- 100+ Tips, Tricks & Snippets Ultimate WooCommerce Hide Guide
- How to Hide Out of Stock Visibility In WooCommerce
- How to Hide Weight of Product in WooCommerce
- How to Create WooCommerce Secret Product
- How to Change WooCommerce Storefront Layout
- Elementor Review 2021 » Features, Pros, Cons, Pricing & Tutorial
- How to Check if User is Logged In WordPress
- How to Create Product Programmatically WooCommerce
- How to Add WooCommerce My Account Page Redirect
- How to Create WooCommerce Login Logout Shortcode
- How to Get Order ID on Checkout Page WooCommerce
- WooCommerce Login Redirect Hook Explained with Example
- How to Create One Product WooCommerce Storefront Store
- How to Replace Add to Cart Button With Link WooCommerce
- How to Set Up WooCommerce Product Price Per Kg
- How to Create Order Programmatically WooCommerce
- How to Get Order Details After Checkout In WooCommerce
- How to Create WooCommerce Add to Cart Button by Product Id
- How to Set Up Free Shipping with Minimum Spend In WooCommerce
- How to Create WooCommerce After Login Redirect to Homepage