BACK TO DIRECTORY

SMNTCS Show Sale Price Date for WooCommerce

by Niels Lange

5.0
(1 ratings)

SMNTCS Show Sale Price Date for WooCommerce tells your customers how long a sale lasts. When a product has a scheduled sale with an end date, the date appears next to the sale price on the product page, for example “(Discounted until 31 December 2026)”.

For variable products the latest end date of all variations on sale is shown. Products whose sale has no end date keep their normal price display.

You can change the label in the Customizer under WooCommerce, then Show Sale Price Date.

Filters

Add these lines to your theme’s functions.php file or a small plugin.

Change the date format to any PHP date format:

add_filter( 'sale_date_format', function () { return 'j F Y'; } );

Change the label in code instead of the Customizer:

add_filter( 'sale_date_label', function () { return 'Valid until'; } );<h3>Contribute</h3>

Contributions are always welcome. Simply head over to GitHub and create an issue or open a pull request.

Screenshots

Plugin Details

Active Installs
0
Total Downloads
2,468
Version
2.0
Requires WP
5.3
Requires PHP
7.4
Tested Up To
7.1.4
Added
2020-03-21
Last Updated
2026-09-27 8:59am GMT

Ratings

5
1
4
0
3
0
2
0
1
0