Skip to content
FULLTime eCommerce

Discount badge – Low Stock & Discount Badge

Discount badge

The Shopware standard only shows a plain "%" symbol on discounted product tiles. FutiStockBadge replaces this symbol, when the setting is active, with the real, rounded percentage, e.g. "−20%".

What exactly gets replaced

When the "Show real percentage instead of '%'" setting (discountRealPercent) is active, the component_product_badges_discount block outputs the calculated discount rate instead of the standard symbol. When the setting is disabled, the block renders parent() unchanged — exactly Shopware's standard badge, with no modification at all.

When the badge appears

The plugin does not change whether the discount badge appears — only what it says. The display conditions are Shopware's standard ones:

  • There is a strikethrough price with a percentage greater than 0
  • No price range exists — i.e. no "from" price where more than one calculated price exists
  • For variant parent products displayed as the parent item, the price doesn't deviate from the cheapest variant price

If these conditions aren't met, Shopware wouldn't show a discount badge anyway — with or without FutiStockBadge. The plugin only affects the label, not this logic.

A missing discount badge on a discounted product is, in almost all cases, not a plugin bug but one of the three standard conditions above (typically a price range or a variant parent product). See Troubleshooting for details.

Tiered prices

If a product has tiered prices, the last applicable tier price is used to calculate the displayed percentage — i.e. the price level relevant for the currently applicable quantity.

Rounding

The displayed percentage is rounded (e.g. "−20%" instead of "−19.6%"). The plugin doesn't change the underlying discount calculation itself.

Accessibility

The badge remains fully usable for screen readers:

  • The hidden text listing.boxLabelDiscount remains in the markup
  • The percentage itself is marked with aria-hidden, since it's visually redundant to the hidden text

Disabling it

Turn discountRealPercent off and the discount badge behaves exactly like the unmodified Shopware standard — in that case the plugin simply renders parent() without any output of its own.

Was this page helpful?

Support

Rented Plugins (Shopware Store)

For support with plugins rented from the Shopware Store, please open a support ticket in your Shopware account.

Create Shopware Ticket

General Inquiries

For general questions or purchase licenses, reach us by email.

Send Email
Discount badge – Low Stock & Discount Badge | FULLTime eCommerce