Magento 2 Low Stock Message: “Only X left” below a Threshold
SKU: STOCKLEVELMESSAGE1
- hints like “Only 3 left in stock” only below a threshold
- rules and texts per category, attribute set and product
- shown on product page, in listings and in the cart
- salable quantity (MSI), page stays in full page cache
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 Low Stock Message: show scarcity honestly, when it exists
With Mironsoft Stock Level Message you show a Magento 2 low stock message, but only when the quantity matters for the purchase decision. With 200 units in stock the shop stays quiet, with 3 units it says “Only 3 left in stock”. You set the thresholds, texts and colours yourself, separately per category, attribute set or single product. The display is based on the salable quantity and keeps the page in the full page cache. The interface runs on Alpine.js inside the Hyvä theme.
Threshold levels
Define several levels, for example “Limited stock” from 10 and “Only {qty} left in stock” from 3.
Texts with placeholder
The placeholder {qty} is replaced by the quantity, and you maintain texts per store view in your language.
Rules per category
Fresh goods need other limits than furniture: rules per category, attribute set and product.
Salable quantity
The number comes from the salable quantity (MSI) minus reservations, not from the raw stock figure.
Several places
Product page, category list, mini cart and cart show the same hint, each one can be switched off.
Colours and icons
Choose colour and icon per level without writing any custom CSS.
Why customers should see the stock level, but not always
A hint about a small remaining quantity helps the decision: someone who knows that only a few pieces are left buys now rather than in three weeks. Merchants therefore look for a Magento 2 low stock message. Magento itself only knows one global threshold without rules, colours or categories.
A number on every item quickly looks arbitrary or gives competitors a look into your warehouse. Only the rule “below the threshold only” makes the hint credible. And it has to be true: false scarcity damages trust more than it earns revenue.
Magento 2 low stock message by rules: threshold per category and product
A rule consists of scope, threshold and text. The scope is a category, an attribute set, a brand or a single product. If several rules apply, priority decides and the single product beats the category. In addition you can set a window in which the quantity is rounded, such as “Fewer than 10”, so that no exact warehouse figure goes public.
- Scope: category, attribute set, brand or product
- Priority and product override when rules overlap
- Optional rounded display instead of the exact number
Texts, colours and levels for the Magento 2 low stock message
Each level has its own text, colour and icon. A typical scale: green for sufficiently available without a number, orange for a few pieces with the quantity, red for the last item. For backorders or restocking a separate text can appear. All texts can be translated per store view. The placeholders {qty} and {sku} insert quantity and article number.
- Levels with text, colour and icon freely combinable
- Separate text for backorder and restocking
- Placeholders for quantity and SKU, translation per store view
Where the Magento 2 low stock message appears: product page, listing and cart
On the product page the hint sits next to the price or above the add-to-cart button. In the category listing it appears as a small label below the product name. In the cart it warns when the requested quantity exceeds stock, before checkout throws an error. Each place can be switched off separately. The quantity is loaded with a small Alpine.js request, so the page stays in the full page cache and the number is still current.
- Position on the product page selectable via layout XML
- Cart warning when the quantity is too high
- Current number despite full page cache
Edge cases and control: a Magento 2 low stock message is a matter of trust
The module only shows quantities that are really salable. If stock management is switched off for a product or stock is unlimited, no hint appears. For bundles and configurable products the selected variant decides the quantity. In the admin a preview per product shows which text would appear at which stock level. Rule changes take effect without a reindex.
- No hint for unlimited stock or switched-off management
- Variant-based quantity for configurable products
- Preview in the admin, rule changes without reindex
Where a Magento 2 low stock message makes sense
Typical situations where a Magento 2 low stock message speeds up the decision.
Sale and clearance
For remaining stock the quantity motivates the purchase. With rules per category you show the number only for clearance goods.
Seasonal goods
Summer or Christmas items run short. The hint shows in time that waiting does not pay off.
Expensive single pieces
For unique items and demo units, “Only 1 left in stock” creates honest urgency.
Avoiding cart errors
Whoever wants 5 and finds only 3 in stock learns it in the cart instead of at checkout.
Magento 2 low stock message: without and with the module compared
The difference to the default Magento threshold.
| Topic | Without module | With Mironsoft Stock Level Message |
|---|---|---|
| Threshold | One global limit for the whole shop | Rules per category, attribute set and product |
| Texts | Fixed default text | Own texts with placeholders per store view |
| Presentation | Plain text without levels | Colour, icon and levels per rule |
| Placement | Product page only | Product page, listing, mini cart and cart |
| Currentness | Outdated in cache or missing | Current quantity despite full page cache |
How we set up the Magento 2 low stock message for you
The process after you place your order.
Briefing
You name the categories with a quantity hint, thresholds, levels and texts.
Installation
We install the module, set up the Magento 2 low stock message for your store views and check the connection to MSI and your sources.
Texts and colours
We word the hints in your tone and match the colours with the theme.
Testing
We check all levels, bundles, configurable products and the cart warning. For the Magento 2 low stock message with several sources we also test the sum.
Handover
Your team gets an introduction to rules, priorities and the preview.
How it differs from status texts, low stock warnings and backorder notes
The Mironsoft status texts change the words “In stock” and “Out of stock” but know no quantity rules. The backend low stock alert informs your team internally, and the backorder message explains the delivery time. A Magento 2 low stock message starts exactly at the quantity shown to the customer.
All modules can be combined. The display runs on Alpine.js in the Hyvä theme, without jQuery and without an extra library. Scarcity statements must be factually correct; legal review lies with the shop owner.
No download, but personal setup
Stock Level Message is not listed here as a ready-made download file to install yourself. The purchase is a commission: after the purchase we get in touch, install the module in your shop and agree on thresholds, texts and placement together with you.
Frequently asked questions
Everything important about thresholds, texts, cache and how the purchase works.
How can I show a Magento 2 low stock message only when quantity is low?
How can I change “Only X left in stock” in Magento 2?
Which stock quantity is shown?
Can I limit the Magento 2 low stock message to certain categories?
Does the page stay in the full page cache?
Does the message reveal the exact warehouse figure?
What happens with unlimited stock or backorders?
Does the Magento 2 low stock message work with Hyvä?
How does this differ from status texts?
Can I download and install the module myself?
Magento 2 Low Stock Message – Mironsoft Stock Level Message