Website Building » WooCommerce » How to Change Price Based on Quantity in WooCommerce?

How to Change Price Based on Quantity in WooCommerce?

Last updated on October 1, 2022 @ 11:15 pm

One of the most common questions we get asked by WooCommerce beginners is how to change the price of a product based on the quantity purchased. For example, if a customer buys 10 items, they should get a 10% discount.

The good news is that this is actually quite easy to do in WooCommerce. In this article, we’ll show you how to change the price of a product based on the quantity purchased in WooCommerce.

First, you need to create a new product in WooCommerce. To do this, go to Products -> Add New in your WordPress dashboard.

Enter a name and description for your product, and then scroll down to the “Product Data” section. Here, you need to select the “Variable product” type:

Now, you can add as many variations of your product as you like. For our example, we’re going to add two variations:

One for single items (price: $10)
One for 10 items or more (price: $9)

PRO TIP: If you are changing the price of an item based on the quantity in WooCommerce, be sure to update the price field for each quantity level. Otherwise, the price change may not take effect.

To add a new variation, click on the “Add variation” button:

Next, select the attributes for your variation. In our case, we’re going to select “Price”:

Now enter the price for your variation. If you want to offer a discount, make sure the price is lower than the regular price:

Repeat this process for each variation you want to add. Once you’re done, click on the “Publish” button to publish your product.

Now that your product is created, let’s move on to setting up the pricing rules. For this, we’re going to use the Advanced Discounts plugin.

First, you need to install and activate the plugin. For more information, see our step by step guide on how to install a WordPress plugin.

Once the plugin is activated, go to WooCommerce -> Advanced Discounts -> Add New Rule in your WordPress dashboard. You’ll be presented with a screen where you can configure your discount rule:

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.