Sign inBlogSupportContact
WooCommerce

Apply a sitewide discount to every product instantly

One command. Every product shows a sale price with strikethrough. Original prices stay untouched in the database.

3 min read May 2026 discount

Running a sitewide sale shouldn't take an hour

Black Friday is tomorrow. You want every product 20% off. In WooCommerce, that means editing each product individually — set the sale price, save, next product. Or writing a bulk edit query and hoping you calculated the math right. Or installing a discount plugin with coupon rules, conditions, and scheduling.

For "everything is 20% off right now," all of that is overkill.

What most people do instead

Edit each product manuallyOpen product, calculate sale price, enter it, save. Repeat 200 times. Then reverse it all when the sale ends.
Discount pluginsDynamic pricing plugins with rule builders, condition trees, and scheduling. Powerful, but complex for a flat percentage off.
Bulk SQL updateCalculate sale prices in a spreadsheet, run an UPDATE query. One mistake and every price is wrong. Hard to reverse.

A better way: one command, every product on sale

Open the navigator. Type discount -percent=20. Every product on the frontend instantly shows a 20% discount with the original price struck through and the sale price displayed. The database stays untouched — original prices remain exactly as they were.

TrueCommander
20% discount applied
Product DiscountActive
Discount20%
DisplaySale price with strikethrough original
NoteOriginal prices remain unchanged in the database

Non-destructive. The discount applies at render time via WooCommerce price filters. Your database prices never change. Remove the startup command and prices revert instantly.

How it works

1
Set the percentagediscount -percent=20 applies 20% off. Auto-registers as a startup command so the discount persists.
2
Every product shows a sale priceWooCommerce price filters apply the discount at render time. Strikethrough original, sale badge, the works.
3
Remove when the sale endsDelete the startup command entry. Prices revert to their originals instantly. Nothing to undo in the database.
DetailValue
Command namediscount
Set discount-percent=20 (1-100)
Applies toAll products on product pages (simple + variable)
DisplayWooCommerce sale formatting (strikethrough + sale badge)
Database impactNone — prices filtered at render time
RequiresWooCommerce active
Can be used in

Real example

It's Black Friday morning. Your WooCommerce store has 340 products. The plan: 25% off everything for 72 hours.

You open the navigator and set a 25% discount. Every product page now shows the original price crossed out with the discounted price below it. WooCommerce's "On Sale" badge appears on catalog pages. Customers see the sale immediately.

Monday morning, the sale is over. You remove the startup command entry. Every product reverts to its original price. No bulk edits. No spreadsheet of "what was the old price?" No hours of cleanup.

Goes further with TrueCommander

Ready?

Sitewide sale, one command.

This is one of 91 commands. All included with every license.

Cookies. The short version.

Essential cookies keep the cart and theme working. Analytics only fire if you say yes. Read our policy.