Description
Kraan Badges for WooCommerce is a lightweight, easy-to-use plugin that automatically adds highly customizable badges to your product catalog. Stand out and drive conversions by highlighting sales and new arrivals without touching any code.
Features:
* Automatic Percentage Discount Badges: Automatically calculates and displays the maximum discount percentage for simple and variable products on sale.
* Automatic “New” Badges: Highlights recently added products based on a customizable timeframe (days, weeks, or months).
* Extensive Design Customization: Choose from 7 unique shapes including Circle, Square, Ribbon, Hexagon, Shield, Label, and Oval.
* Full Color Control: Customize background colors, text colors, and shadow colors to match your brand identity perfectly.
* Live Settings Preview: See exactly how your badges will look while you design them in the backend.
* Smart Override: Easily hide the default, unstyled WooCommerce “Sale” badge with a single click to prevent duplicate labels.
* Translation Ready: Fully compatible with translate.wordpress.org. Easily translate all plugin texts into your preferred language.
* Lightweight: Uses standard WooCommerce hooks and properly enqueued CSS/JS for styling and backend functionality.
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory, or install the ZIP file via the WordPress admin panel (Plugins > Add New > Upload Plugin). - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Navigate to Kraan > Kraan Badges, WooCommerce > Kraan Badges, or Settings > Kraan Badges in your WordPress dashboard to configure your badge designs.
FAQ
Does the discount badge work with variable products?
Yes! If a variable product is on sale, the plugin automatically calculates the discount for each variation and displays the highest percentage discount on the product card.
Why doesn’t the “New” badge appear on my product?
The “New” badge is calculated based on the product’s publish date. Make sure the product was published within the timeframe you set in the settings (e.g., within the last 30 days).
Can I hide the standard WooCommerce “Sale” text?
Yes. There is a built-in option in the settings panel to automatically hide the default WooCommerce sale flash, ensuring only your custom Kraan Badge is visible.
Can I translate this plugin?
Yes, the plugin is fully internationalized (i18n) and translation-ready. Translations are automatically handled and distributed via the translate.wordpress.org platform.
Screenshots
Changelog
1.2.4
- Admin Menu: Added Kraan Badges as a submenu item inside the unified “Kraan” top-level menu alongside WooCommerce and Settings access.
- Version Sync: Aligned version numbers across plugin header, enqueued assets, and readme.txt.
1.22
- UI Update: Integrated modern Stripe support banner aligned with the Kraan project standards.
- Menu Structure: Maintained dual submenu access under both WooCommerce and Settings.
- Admin UI: Resolved third-party admin notice conflicts ensuring full container width and isolated styling.
1.20
- Code Optimization: Separated CSS and JavaScript into dedicated files and enqueued them properly using wp_enqueue_style and wp_enqueue_script.
- Repository Guidelines: Removed plugin assets (banners, icons) and translation files (.po/.mo) from the plugin package to comply with WordPress.org directory guidelines. Translations are now fully handled via translate.wordpress.org.
1.19
- Design: Expanded the base dimensions of the Circle, Hexagon, and Shield shapes from 55px to 65px to properly accommodate longer translated words (like “Nieuw” or “Nouveau”) without text overflowing the edges.
1.18
- Removed deprecated load_plugin_textdomain() call to comply with modern WordPress.org translation standards.
1.0
- Initial release.



