Skip to main content
Design & customization

How to show a low-stock alert

A low stock alert adds urgency to your bundle widget by showing a short message like "Only 3 left" on a variant when its inventory runs low. Bundlex reads live Shopify inventory and shows the alert per variant row, so each option in the selector reflects its own real stock level.

Before you start

The low stock alert appears inside the per-offer variant selector, so it only works when Show variant selector per offer is turned on for the bundle. If that setting is off, customers use Shopify's default variant picker and the alert has no row to attach to. See Show a variant selector per offer for how to enable it.

  • The variant must have inventory tracking enabled in Shopify.
  • The variant must not be set to keep selling when out of stock (oversell off).
  • The alert shows only when available stock is at or below your threshold.

Enable the low stock alert

  1. Open the bundle you want to edit.
  2. Go to the widget settings section, where Skip cart and go to checkout and Show compare at price as original price live.
  3. Turn on Show low stock alert.
  4. The Message and Threshold fields appear once the alert is enabled.

Set the threshold

The Threshold field controls how low stock has to drop before the alert shows. The alert appears when a variant's available quantity is at or below this number. The default is 5, and you can enter any whole number from 1 to 1000.

With a threshold of 5, a variant with 5, 4, 3, 2, or 1 unit left will show the alert. A variant with 6 or more units will not.

Write the message

The Message field is the text shown on the variant row. It supports one variable, {{stock}}, which is replaced with the variant's live quantity. The default message is Only {{stock}} left, which renders as "Only 3 left" when three units remain.

You can write your own copy and place {{stock}} anywhere in it, for example Hurry, only {{stock}} in stock!. The message is required to include {{stock}}, so if you remove it the bundle will not save until you add it back. Keep the message to 200 characters or fewer.

Choose the color

The alert color is set in the widget Style section, under Alert color. It defaults to a red tone so the message reads as urgent, but you can pick any color to match your theme.

How it behaves on the storefront

  • The message renders per variant row inside the offer's variant selector, so different variants can show different counts (or none) at the same time.
  • The count comes from live Shopify inventory, so it stays accurate as stock changes.
  • Variants that are untracked, set to keep selling when out of stock, or above the threshold show no alert.

Preview it

To see the alert in the editor preview, select a variant that is low in stock. Remember that Show variant selector per offer must be enabled for the alert to appear at all.

Troubleshooting

  • No alert shows. Confirm Show variant selector per offer is on, the variant has inventory tracking enabled, and its stock is at or below your threshold.
  • The bundle will not save. The message must contain {{stock}}. If you deleted the variable, add it back to the message field and save again.
  • The alert never appears even at low stock. Check that the variant is not set to keep selling when sold out, since oversell variants are excluded.

Was this article helpful?

Your feedback helps us improve our docs.

Thanks - we'll keep improving this article.

Want to chat with our team? Still have a question?

Still need help?

Our team is one click away. Send us a message and we'll get back to you.

We use a few cookies to keep this site working, measure how it is used, and power our chat widget when you open it. See our cookie policy.