Discount Percentage Display for Woo
Discount Percentage Display for Woo
Description
Discount Percentage Display for Woo adds a clean and automatic discount percentage label next to product prices in WooCommerce.
The plugin supports:
– Simple products
– External products
– Grouped products
– Variable products (including dynamic updates when selecting variations)
The discount percentage is calculated based on the regular price and sale price and is displayed in a clear and customizable format.
All settings are integrated directly into the WooCommerce settings panel, providing a native and seamless experience.
Features
- Displays discount percentage next to product prices
- Supports simple, grouped, external and variable products
- Shows the highest available discount on variable products
- Updates the discount dynamically when a variation is selected
- Option to enable or disable the feature
- Customizable discount label text (default: OFF)
- Native WooCommerce settings tab
- Lightweight and performance-friendly
- No JavaScript required
Installation
- Upload the plugin folder to
/wp-content/plugins/discount-percentage-display-for-woo/ - Activate the plugin through the “Plugins” menu in WordPress
- Go to WooCommerce Settings Desconto (%)
- Enable the discount percentage and customize the label text if needed
Faq
Yes. The plugin displays the highest discount available on the product page and updates the discount dynamically when a variation is selected.
Yes. You can change the label text (for example: OFF, DESCONTO, SAVE, 🔥) directly in the plugin settings.
You can style the discount label using CSS.
Use the following class:
.wdpd-discount-percent
No. The plugin uses native WooCommerce hooks and works seamlessly with AJAX variation updates.
No. The calculations are lightweight and only run when prices are rendered.
Reviews
Changelog
1.0
- Initial release