Posted on

How to Apply Store-Wide Bulk Discounts in WooCommerce?

I’m pretty sure that during one of those Black Friday sales all you wanted to do was to apply a bulk discount to your WooCommerce website without having to generate a coupon code.

Let’s not forget that despite coupons are trackable and you can assess your marketing efforts with their usage statistics, requiring the user to take one additional step at checkout (entering the correct coupon code) reduces your sales conversion rate (the same applies with useless checkout fields by the way – less work to do, higher conversion rate).

In today’s post, we’ll see what are the 3 options I recommend in order to apply bulk store discounts. It pretty much depends on your product types (simple vs variable for example) and whether you want to do this via the settings or with a little bit of PHP.

1. Product Bulk Editing (Default WordPress Dashboard)

This is the easiest solution. You can just do this from the “Products” admin page of the WordPress dashboard.

Video Recap:

  1. Go to the “Products” admin page
  2. Tick all the products you want to edit the sale price for
  3. Click on Bulk Actions > Edit
  4. Select “Change Sale Price to:”
  5. Choose “Percentage off of regular price”
  6. Enter e.g. 30%
  7. Update

The problem is that this method only works for simple products, and it won’t change the pricing of variable, grouped and any product with price ranges (min – max).

2. Product Bulk Editing (Premium Plugin)

In case your store has many variable products (for example, a fashion WooCommerce store – where each product comes in different sizes, colors, styles…), then the above method won’t work for you.

Thankfully, there is a plugin for that. I used this in the past for some of my clients and it works like a charm (and it is fast).

With a single click, you can automatically apply the same bulk discount to variable and simple products. You can filter by category and use other cool settings that makes it super easy for you to run promotions.

Bulk editing prices for simple and variable products via the plugin settings

This WooCommerce Bulk Editing Plugin has 2500+ sales on CodeCanyon, it’s updated often and has good rating.

3. Programmatically Apply a Coupon (PHP Snippet)

This method is my favorite.

It requires a little PHP that must be placed in your child theme’s functions.php (here’s a free video lesson in case you don’t know how to override WooCommerce the right way).

In this case, the coupon will be automatically applied to the cart once a user goes to the WooCommerce Cart page.

First, you need to create the coupon from WordPress Dashboard > WooCommerce > Coupons. Make sure to set the coupon code with an overall % cart discount (and not a fixed amount), then write down the coupon code as you will need it for the PHP snippet.

After this is done, simply use this snippet:ย https://businessbloomer.com/woocommerce-apply-coupon-programmatically-product-cart/ย (and exactly the “Apply a Coupon Programmatically for ALL Products” version – it’s the second snippet).

Enjoy ๐Ÿ™‚

Rodolfo Melogli

Author, WooCommerce expert, WordCamp speaker and Internet marketer, Rodolfo Melogli has worked as a WooCommerce freelancer since 2011. He helps entrepreneurs and developers overcome their WooCommerce nightmares :) Rodolfo is the organiser of WordCamp Dublin, the Dublin WooCommerce Meetup, the Dublin Ecommerce Meetup and the Dublin WordPress Meetup. He enjoys interacting with people, travelling and chasing tennis & soccer balls. Of course, he loves pizza too.

4 thoughts on “How to Apply Store-Wide Bulk Discounts in WooCommerce?

  1. Hey Rodolfo ๐Ÿ™‚
    Nice to see you again

    Would you know a plugin which allows to apply a discount for 10 pieces of the same product?
    For example, if I seel socks. One sock would cost $12. But I wanted to offer 10 socks for $100, on the product page. The customer would see an offer, just below the product price:
    “buy 10 for $100”

    thank you, best wishes ๐Ÿ™‚

    1. Hello Martyna, good to hear from you ๐Ÿ™‚ Yes, I recommend the following plugins:

      Hope this helps! ๐Ÿ™‚

  2. Hey Rodolfo,
    thanks once again for sharing all these awesome tips.
    Is there an easy way to modify the 3rd variant to remove the coupon if “remove coupon” link is clicked? I love how this works, but would prefer to be able to remove the coupon if people want to manually use a different one.

    Thanks!

    1. Hey Miroslav, thanks so much for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here via the blog comments. Thanks a lot for your understanding! ~R

Questions? Feedback? Support? Leave your Comment Now!
If you're writing code, please wrap it between: [php] code_here [/php]

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.