Skip to content

Product Badge

The Product Badge module allows you to display badges on product images — discount badges, new product badges, and featured product badges.

The module is optional and must be activated in the main plugin settings under the Additional Modules section.

Displays discount information on products with an active discount rule.

Settings in the rule:

  • In the discount rule settings, enable Show badge
  • Enter the Badge text

The {percent} and {value} variables work only with Auto Price mode rules, because only these rules change the product price:

Rule TypeVariablesRecommended Text
Product discountsWork-{percent}% or Save {value}
Bulk discountsWork-{percent}% or Up to {percent}% off
Bundle discountsWork-{percent}%
Cart discountsDo not workCart discount
Buy X Get XDo not workBuy 1 get 1 free or 2+1 deal
Buy X Get YDo not workGift with purchase
Free GiftDo not workFree gift

Why do variables not work for some rules?

Rules with Fee Based mode (cart, BOGO) apply the discount as a separate cart item, not by changing the product price. Therefore, the percentage or value of the discount cannot be calculated at the product level.

Example texts for Auto Price rules:

-{percent}%
{percent}% off
Save {value}

Example texts for Fee Based rules:

Buy 1 get 1 free
2+1 deal
Cart discount
Gift with product

Automatically displays a badge on newly added products.

Settings:

  • Enable “New” badge - enables/disables display
  • Number of days - how long after publication the badge is shown (default: 14 days)
  • Badge text - custom text (default: “New”)
  • Background color - default green (#27ae60)
  • Text color - default white (#ffffff)

Displays a badge on products marked as Featured in WooCommerce.

Settings:

  • Enable “Tip” badge - enables/disables display
  • Badge text - custom text (default: “Tip”)
  • Background color - default blue (#3498db)
  • Text color - default white (#ffffff)

PositionDescription
Top LeftUpper left corner (default)
Top RightUpper right corner
Bottom LeftLower left corner
Bottom RightLower right corner
StyleDescription
RectangleRectangle with adjustable border-radius
RibbonRibbon with a fold effect — protrudes from the image
CustomCustom CSS — the plugin does not inject any styles

The “Ribbon” style creates a ribbon effect protruding from the product image.

Properties:

  • The badge protrudes from the image (left or right depending on position)
  • A small triangle below the badge simulates a fold/shadow
  • The triangle is automatically 20% darker than the badge background color

How it looks:

For Top Left position:
╔═══════════════╗
║ -20% ║◄── Badge
╚═╗
▼ ◄── Triangle (fold effect)
For Top Right position:
╔═══════════════╗
║ -20% ║
╔══╝
  • Font size - font size in pixels (default: 12)
  • Padding - inner padding in CSS format (default: “5px 10px”)
  • Border radius - corner rounding in pixels (default: 3)
  • Background color - default red (#e74c3c)
  • Text color - default white (#ffffff)

The Hide default WooCommerce “Sale!” badge setting hides the standard WooCommerce sale badges across the entire site.


  • Product archive - catalog, categories, search results
  • Product page - main product image
  • Widgets - product widgets (optionally)

Not displayed:

  • In the cart
  • At checkout
  • In the mini cart

The plugin automatically detects the product gallery for various themes:

  • WooCommerce (default)
  • Astra
  • Storefront
  • OceanWP
  • Flatsome
  • Kadence
  • GeneratePress

For other themes, you can add custom selectors using the wpify_woo_discounts_badge_gallery_selectors filter — see UI Hooks.


Why is the badge not displaying?

Check:

  1. Is the Product Badge module activated?
  2. Is “Show badge” enabled in the rule?
  3. Is the badge text filled in?
  4. Does the product match the rule conditions?
How to change the badge position only for certain products?

Use CSS with the product class:

.post-123 .wpify-discount-badge-container {
top: auto;
bottom: 10px;
}
Can I have multiple badges on one product?

Yes! The plugin supports displaying multiple badges at once:

Different badge types:

  • Discount badge + New + Tip

Multiple discount badges:

  • If a product matches multiple discount rules (e.g., volume discount + free gift), badges for all rules are displayed

Badges are displayed stacked vertically.

How to completely disable CSS from the plugin?

Set the style to Custom — the plugin then does not inject any default styles and you can use your own CSS.