Plugin categories

Create a Website with AI
WooCommerce Smart Sale Badge

WooCommerce Smart Sale Badge

Enhances the WooCommerce sale badge by displaying the total saving a customer will receive.

4.7

Rating summary

6

Reviews

800

Active installations

WooCommerce Smart Sale Badge
WooCommerce Smart Sale Badge

Overview

Compatibility

Installation instructions

Customer support & learning resources

Changelog

Main benefits

Displays total saving amount

Works with all product types

Simple and external products

Variable and grouped products

Easy installation and activation

About this plugin

Categories: E-commerce
Version: 1.1
Last updated: 05-12-2018
WordPress version: 4.0
Tested up to: 5.0.22
PHP version required: false
Languages:
Learning resources: View resources

Overview

"WooCommerce Smart Sale Badge" is a WordPress plugin designed to enhance the default WooCommerce sale badge by displaying the exact amount customers will save. This plugin supports various WooCommerce product types—simple, external, variable, and grouped—ensuring that customers can see a 'Save $X!' badge on simple and external products and a 'Save up to $X!' badge on variable and grouped products. Installation is straightforward; simply install and activate the plugin to start showcasing the savings directly on product pages. For a more comprehensive sale badge enhancement, users are directed to consider the Sale Flash Pro extension available from WooThemes.

Enhanced Sale Badge

  • Displays the total saving amount a customer will receive.
  • Works with all WooCommerce product types.

Simple and External Products

  • Displays a badge that says ‘Save $X!’ for simple and external products.

Variable and Grouped Products

  • Displays a badge that says ‘Save up to $X!’ for variable and grouped products.

Easy Installation

  • Simply install and activate the plugin to start using it.

Rating and reviews

4.7

Rating summary

6

Reviews

800

Active installations

5
4
3
2
1

User sentiment analysis

Users appreciate this plugin for its functionality, ease of use and customization possibilities. It effectively adds a sale badge feature to WooCommerce, potentially boosting sales by highlighting discounts. Users particularly like its lightweight nature and ability to display savings as a percentage, enhancing the visual appeal of the discounts. However, some users are concerned about the lack of recent updates and the small size of the "Save $x" text, which they feel is not ideal compared to a more noticeable sale sticker. Overall, the plugin serves its purpose well and is particularly helpful for emphasizing sales on e-commerce sites.
Anonymous User 16103310

Anonymous User 16103310

02 Jun, 2018

Exactly what I was looking for. Was scared that it hasn’t been updated in a moment but works just fine
tinto_brass

tinto_brass

03 Aug, 2016

this plugin is great! i made small mod to show sale in percent: <?php if ( ! defined( 'ABSPATH' ) ) exit; class WooCommerce_Smart_Sale_Badge { private $dir; private $file; public function __construct( $file ) { $this->dir = dirname( $file ); $this->file = $file; // Handle localisation $this->load_plugin_textdomain(); add_action( 'init', array( &$this, 'load_localisation' ), 0 ); add_filter( 'woocommerce_sale_flash', array( &$this, 'badge_sale_amount' ), 10, 3 ); } public function badge_sale_amount( $message, $post, $product ) { $saving_amount = 0; if ( $product->has_child() ) { // Loop through children if this is a variable product foreach ( $product->get_children() as $child_id ) { $regular_price = get_post_meta( $child_id, '_regular_price', true ); $sale_price = get_post_meta( $child_id, '_sale_price', true ); if( $regular_price != '' && $sale_price != '' && $regular_price > $sale_price ) { $new_saving_amount = $regular_price - $sale_price; // Only display the largest saving amount if( $new_saving_amount > $saving_amount ) { $saving_amount = $new_saving_amount; } } } $button_text = apply_filters("wc_smart_sale_badge_title", __( 'Do', 'wc_smart_sale_badge' ), $product->has_child(), $product); } else { // Fetch prices for simple products $regular_price = get_post_meta( $post->ID, '_regular_price', true ); $sale_price = get_post_meta( $post->ID, '_sale_price', true ); if( $regular_price != '' && $sale_price != '' && $regular_price > $sale_price ) { $saving_amount = $regular_price - $sale_price; } $button_text = apply_filters("wc_smart_sale_badge_title", __( '', 'wc_smart_sale_badge' ), $product->has_child(), $product); } // Only modify badge if saving amount is larger than 0 if( $saving_amount > 0 ) { $saving_price = woocommerce_price( $saving_amount ); $percentage = round( ( ( $product->regular_price - $product->sale_price ) / $product->regular_price ) * 100 ); $saving_price_r = apply_filters("wc_smart_sale_badge_price", sprintf( __( ' %s!', 'wc_smart_sale_badge' ), $saving_price ), $saving_price, $product); $message = '<span class="onsale">' . $button_text .'-'. $percentage .'%'. '</span>'; } return $message; } public function load_localisation() { load_plugin_textdomain( 'wc_smart_sale_badge' , false , dirname( plugin_basename( $this->file ) ) . '/lang/' ); } public function load_plugin_textdomain() { $domain = 'wc_smart_sale_badge'; $locale = apply_filters( 'plugin_locale' , get_locale() , $domain ); load_textdomain( $domain , WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo' ); load_plugin_textdomain( $domain , FALSE , dirname( plugin_basename( $this->file ) ) . '/lang/' ); } }
frostinel

frostinel

10 Jul, 2014

It works great
ChadMaestro

ChadMaestro

10 Jul, 2014

The plugin removes the sale sticker but instead of the sticker there’s now some very small writing that says “Save $x”. So it’s not ideal and won’t do for me. I haven’t tried it with a different theme though.
markkeulen

markkeulen

17 Feb, 2014

Jus that little enhancement i was looking for

FAQ

How do I edit/translate the text that appears on the badge?

My sale badge isn’t displaying correctly – what gives!?

What types of products does WooCommerce Smart Sale Badge support?

How do I install and activate the WooCommerce Smart Sale Badge plugin?

Does WooCommerce Smart Sale Badge offer advanced features?

Will there be additional features added to WooCommerce Smart Sale Badge?

Can I use WooCommerce Smart Sale Badge with any WordPress theme?

Where can I get support for WooCommerce Smart Sale Badge?