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.
- Go to the “Products” admin page
- Tick all the products you want to edit the sale price for
- Click on Bulk Actions > Edit
- Select “Change Sale Price to:”
- Choose “Percentage off of regular price”
- Enter e.g. 30%
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.
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).