Skip to content
FULLTime eCommerce

Troubleshooting – Low Stock & Discount Badge

Troubleshooting

The low stock badge doesn't appear

Check the following in order:

  • Is "Low stock badge active" turned on? (Configuration)
  • Is the threshold (lowStockThreshold) set to a value greater than 0? At 0 the badge never appears.
  • Is the available stock (availableStock) actually above 0 and less than or equal to the threshold? Check the available stock, not the raw stock (stock) — the two can differ significantly, see Low stock badge.
  • Was the cache cleared (bin/console cache:clear) after changing the setting?

The badge appears on too many products

The configured threshold is too high for your product range. A threshold set too high relative to your average stock levels makes the badge light up on almost every product and takes away its impact. Lower the value under Configuration and refer to the recommendations in Configuration.

The discount badge still shows only "%"

  • Is the "Show real percentage instead of '%'" setting (discountRealPercent) enabled?
  • Was the cache cleared after changing the setting?
  • Does a theme or another plugin also override badges.html.twig or the same block? In that case, the other override may take precedence over the plugin's, see Theme compatibility.

The discount badge is missing entirely

This is, in almost all cases, not a bug but Shopware's standard behavior. The discount badge only ever appears if there's a strikethrough price with a percentage greater than 0, no price range exists ("from" price with multiple calculated prices), and for variant parent products the displayed price doesn't deviate from the cheapest variant price. The plugin doesn't change these conditions, only the label. See Discount badge for details.

The low stock badge's color isn't applied

  • Check whether the color was set in the correct sales channel — settings can be overridden per sales channel.
  • Clear the cache after making the change.
  • Use your browser's developer tools to check whether theme CSS with !important is overriding the inline color, see Theme compatibility.

Badges appear twice

Two extensions override the same block (component_product_badges_discount or component_product_badges_new) and each append their own content to the same parent() call. Check whether another plugin or your theme modifies the same Twig file, and coordinate the blocks, see Theme compatibility.


Still stuck? Write to us at support@fulltime-ecommerce.de.

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
Troubleshooting – Low Stock & Discount Badge | FULLTime eCommerce