Kraan Badges for WooCommerce

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.

Captures d’écrans

Installation

  1. 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).
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Navigate to 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.

Avis

Il n’y a aucun avis pour cette extension.

Contributeurs/contributrices & développeurs/développeuses

« Kraan Badges for WooCommerce » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“Kraan Badges for WooCommerce” a été traduit dans 1 locale. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Kraan Badges for WooCommerce » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal des modifications

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 fully comply with modern WordPress.org translation standards.

1.17

  • Design: Increased internal padding for all badge shapes to provide more breathing room around the text, preventing longer words like « New » or localized texts from touching the edges.

1.16

  • Internationalization: Fully prepared the plugin for translations (i18n). Added the required text domain and mapped all hardcoded strings to WordPress translation functions.

1.15

  • Security: Output escaping resolved. Added strict wp_kses() filtering for frontend badge HTML injection to fully comply with WordPress VIP and repository security guidelines.
  • Reduced repository tags from 6 to 5 to resolve parser warnings.

1.13

  • Security: Added proper data sanitization (sanitize_callback) for plugin settings to comply with WordPress.org guidelines.
  • Compatibility: Updated ‘Tested up to’ tag to 7.1.

1.12

  • Fixed an issue where unchecked settings were not saving correctly.

1.11

  • Added the option to automatically hide the default WooCommerce « Sale » badge to prevent duplicates.

1.10

  • Improved UI design for the settings page with rounded corners, subtle shadows, and increased padding.

1.9

  • Moved the donation banner to the top of the settings page for better visibility.

1.8

  • Added independent color controls for badge shadows.
  • Translated the backend settings interface to English.

1.6

  • Major design overhaul: Decoupled colors from shapes, giving users total creative freedom.
  • Added new shapes: Hexagon, Shield, Oval, and Ribbon.
  • Implemented a real-time Live Preview feature in the backend settings.

1.3

  • Refined admin dashboard integration and added a direct « Settings » link on the plugins page.

1.0

  • Initial release.