• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

virusword.com

Learn Wordpress

  • Home
  • WordPress Shop
    • Fotopress
    • SEO Tool Kit
    • Social Contact
    • Tag Machine 2
    • Video Profits
  • Latest News
  • WordPress
    • Plugins
    • Themes
    • Tutorials
    • Videos
    • Woocommerce
  • About Us
  • Contact Us
    • Terms of Service
    • Privacy Policy
  • Show Search
Hide Search
Home/Videos/Woocommerce tips: How to Display the Discount Percentage on the Sale Badge?

Woocommerce tips: How to Display the Discount Percentage on the Sale Badge?



By default Woocommerce sale badge shows only text (“Sale”) but there is no out-of-the-box option if you want the sale badge to show the discount percentage.

For example, instead of saying ”Sale” you would like it to show “- 40%”. In this video I am going to show you how to display the discount percentage on the Woocommerce sale badge.

Code snippet shown on the video can be found here https://wpsimplehacks.com/how-to-display-the-discount-percentage-on-the-sale-badge

Blocksy Theme and Kadence Theme are both currently two of the best WordPress themes. So, if you’re interested, then you can grab:

🅱️ Blocksy theme https://wpsimplehacks.com/blocksy (SAVE 10% Coupon WPSH10)

🔵 Kadence theme here: https://wpsimplehacks.com/kadence (SAVE 10% Coupon SIMPLEHACKS)

✅ If you want to be the first to be notified about the new tutorials then please subscribe to this channel. https://www.youtube.com/channel/UCYmw1Rk69KKz887kcpCq1nA?sub_confirmation=1

✅ BEST WORDPRESS THEMES:
Blocksy theme: https://wpsimplehacks.com/blocksy (SAVE 10% Coupon WPSH10)
Kadence Theme: https://wpsimplehacks.com/kadence (SAVE 10% Coupon SIMPLEHACKS)
Astra Theme: https://wpsimplehacks.com/astra
GeneratePress: https://wpsimplehacks.com/generatepress
OceanWP: https://wpsimplehacks.com/oceanwp (SAVE 10% Coupon WPSH10)

✅ MY FAVOURITE WEBHOSTING PROVIDERS:
Verpex Hosting https://wpsimplehacks.com/verpex
A2 hosting https://wpsimplehacks.com/a2-hosting
Cloudways https://wpsimplehacks.com/cloudways

✅ AWESOME WORDPRESS PLUGINS:
WPCodeBox https://wpsimplehacks.com/wpcodebox (SAVE 20% Coupon WPSH20)
WooLentor Elementor/Gutenberg add-on https://wpsimplehacks.com/woolentor (SAVE 20% Coupon WPSH20)
Best WordPress Backup, Migration and Staging plugin – WpVivid Pro https://wpsimplehacks.com/wpvidid (SAVE 20% Coupon WPSH20)
Best Gutenberg Blocks addon – Kadence Blocks https://wpsimplehacks.com/kadenceblocks (SAVE 10% Coupon SIMPLEHACKS)
Best forms plugin – Fluent Forms: https://wpsimplehacks.com/fluentforms (SAVE 20% Coupon: WPSH20)
Best for email marketing – Fluent CRM: https://wpsimplehacks.com/fluentcrm (SAVE 20% Coupon: WPSH20)
Best events calendar and ticket selling plugin – WP Eventin https://wpsimplehacks.com/wp-eventin (SAVE 20% Coupon: WPSH20)
Best for creating tables – Ninja Tables https://wpsimplehacks.com/ninjatables (SAVE 20% Coupon: WPSH20)
Best WordPress LMS – Tutor LMS https://wpsimplehacks.com/tutorlms (SAVE 20% Coupon thmwelcome20)
Best WordPress SEO plugin – SEOPress https://wpsimplehacks.com/seopress

Image Map Pro – https://wpsimplehacks.com/imagemap

✅ AWESOME WOOOCOMMERCE EXTENSIONS:

Best Woocommerce Swiss Knife tool – Kadence WooExtras https://wpsimplehacks.com/wooextras (SAVE 10% Coupon SIMPLEHACKS)
Advanced Dynamic Pricing Pro https://wpsimplehacks.com/dynamic-pricing-yt (SAVE 20% Coupon: WPSH20)
Phone orders For Woocommerce Pro https://wpsimplehacks.com/phone-orders-yt (SAVE 20% coupon: WPSH20)
Advanced Orders Export Pro https://wpsimplehacks.com/export-orders-yt (SAVE 20% coupon: WPSH20)
Best Woocommerce sidecart plugin – Woocommerce Cart in One https://wpsimplehacks.com/cartinone

source

Written by:
Abdul Wahid
Published on:
April 22, 2024

Categories: VideosTags: How to Display the Discount Percentage on the Sale Badge, product labels, woocommerce badge management, woocommerce badge plugin, woocommerce badge plugin free, woocommerce plugin, woocommerce sale badge, woocommerce sale percentage, WooCommerce Tutorial 2020, woocommerce tutorial for beginners, woocommerce tutorial videos, woocommerce tutorial wordpress

Reader Interactions

Comments

  1. @aadarsharai6466

    April 22, 2024 at 3:27 pm

    Great , And How can I get to display in a chosen text block?

  2. @willchen2123

    April 22, 2024 at 3:27 pm

    This is what I've been looking for. Thank you so much

  3. @coma754

    April 22, 2024 at 3:27 pm

    How can I remove those "offer" tags?

  4. @iGaDDaFiHuB_iCare

    April 22, 2024 at 3:27 pm

    where do I 
    get the codes

  5. @ScoaladeWordpress

    April 22, 2024 at 3:27 pm

    Hello, It's work perfect! Please let me know how i can add a text on the front of percent ? For example, to have Redution X% ?!
    Many thank's for video.

  6. @madhursandeep3305

    April 22, 2024 at 3:27 pm

    thanku so much

  7. @chrisobrienweb

    April 22, 2024 at 3:27 pm

    Just what I needed. What a hero!

  8. @suklaghosh4647

    April 22, 2024 at 3:27 pm

    Not showing any snippet in woochamp

  9. @duanesmit4032

    April 22, 2024 at 3:27 pm

    Do you have php code to display a coupon on product page?

  10. @jacklan9245

    April 22, 2024 at 3:27 pm

    I accidently deleted it from the snippets without deactivating it, and now, the badge keeps displaying while I want to delete it. So how?

  11. @nofyz

    April 22, 2024 at 3:27 pm

    dont work

  12. @bewake24

    April 22, 2024 at 3:27 pm

    Code for variable and grouped product is throwing error in line 3 in my case

    Dismiss notice.
    Snippet automatically deactivated due to an error on line 3:
    Syntax error, unexpected token "<", expecting "(".

    Please look after it.

  13. @jodiova2927

    April 22, 2024 at 3:27 pm

    YOU ARE A STAR!!!!

  14. @SyedashabAli

    April 22, 2024 at 3:27 pm

    I can't find code

  15. @Muhammad-Usman-Madni

    April 22, 2024 at 3:27 pm

    it works thanks😍

  16. @alihamzawarraich3164

    April 22, 2024 at 3:27 pm

    thanks

  17. @adjimbaye8348

    April 22, 2024 at 3:27 pm

    Thanks you so much ! It's very useful but teh bagde 'On sale' does not show on the main page of the product… I need to clic on the product to see the discount. Do you know how to fix it ?

  18. @itsmetherock

    April 22, 2024 at 3:27 pm

    thank you so much sir it help me lot

  19. @MrIckov

    April 22, 2024 at 3:27 pm

    Hi mate, code is great , but there is problem badge is not show on mobile versions ?

  20. @roykl

    April 22, 2024 at 3:27 pm

    How do i change the color?

  21. @hagaishaul9257

    April 22, 2024 at 3:27 pm

    perfect thank you very much!

  22. @loveheer4761

    April 22, 2024 at 3:27 pm

    Hii

  23. @vishwasrajput8519

    April 22, 2024 at 3:27 pm

    This is not working in my website

Primary Sidebar

Wordpress

  • Content Management Systems (2)
  • Digital Marketing (4)
  • Internet Marketing (6)
  • Latest News (458)
  • Online Business (2)
  • Plugins (519)
  • Themes (521)
  • Videos (1,350)
  • Website Development (1)
  • Woocommerce (589)
  • WordPress (6)

Recent Articles

Unlock Your Internet Marketing Success with WordPress: The Ultimate CMS for Achieving Online Goals

WordPress: A Powerhouse for Achieving Internet …

Continue Reading about Unlock Your Internet Marketing Success with WordPress: The Ultimate CMS for Achieving Online Goals

Unlock Your Internet Marketing Potential with WordPress: A Comprehensive Guide

How to Use WordPress to Achieve Your Internet …

Continue Reading about Unlock Your Internet Marketing Potential with WordPress: A Comprehensive Guide

Search our site

Explore more

Get our Wordpress Guide Get Plugins Get Connected

Footer

VirusWord by Promaps, Inc.

Barnes Place
Colombo 7, Western 00700

Copyright © 2025 · Promaps, Inc.

Keep In Touch

  • Email
  • Facebook
  • Instagram
  • Pinterest
  • Twitter