Magento 2 Stock Status Text: Show Availability by Stock Thresholds
SKU: STOCKSTATUSTEXT1
- Threshold rules instead of just "In stock" and "Out of stock"
- Text, icon and colour per rule, translatable per store view
- Quantity as placeholder or deliberately hidden
- Listing, product page and cart with the same logic
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 stock status text: availability customers understand
"Only a few left" or "Ships in 2 to 3 days" says more than a grey default text. You decide what appears at which stock level.
Out of the box Magento knows only two states: "In stock" and "Out of stock". With a Magento 2 stock status text this becomes a display that fits the quantity: "Available", "Only a few left", "Last pieces" or "Currently sold out", each with icon and colour. If you want to change the Magento 2 availability text without touching templates, you set a rule table in the configuration.
The Mironsoft extension works with Hyvä and Tailwind and needs no extra JavaScript. In the admin you define at which stock level which sentence appears, translate it per store view and decide whether the exact quantity is visible. The principle of this Magento 2 stock status extension is simple: the display changes, the real stock status stays untouched.
Threshold rules
Any number of ranges such as 20 and up, 6 to 19, 1 to 5 and 0, each with its own text.
Text, icon, colour
Wording, symbol and tone per rule, in a traffic-light scheme or in your brand colours.
Quantity placeholder
{{qty}} shows the exact number; without the placeholder the stock stays hidden.
Consistent everywhere
Listing tile, product page and cart use the same rules.
Backorder and sold out
Separate texts for backorder and sold-out items, set independently.
Override per product
An attribute replaces the rules for single items, e.g. made-to-order.
Magento 2 stock status text: threshold rules from stock level to the right sentence
In the configuration you create a table: from-to range, text, icon, colour. Rules are checked top to bottom and the first match wins. So a number in the warehouse becomes a readable sentence without touching templates. The rules apply to the salable quantity Magento reports for the product.
A typical staging: from 20 pieces "In stock" in green, 6 to 19 "Few in stock" in yellow, 1 to 5 "Only {{qty}} left" in orange, 0 "Currently sold out" in grey. This Magento 2 stock status traffic light scheme is a suggestion; thresholds, texts and colours are yours to set. Rules are checked one after another and the first match wins.
- Ranges with from/to, order by priority
- Own text per rule, icon and colour from a fixed selection
- Fallback rule for anything no rule matches
Change the Magento 2 availability text: look and language
The status appears as a subtle badge with icon and Tailwind colour classes that fit the Hyvä theme. You maintain texts per store view, so the English shop shows "Only {{qty}} left" where the German one says "Nur noch {{qty}} Stück". If you do not want to reveal real stock, simply leave out the placeholder and write "Almost sold out".
Multilingual shops benefit most: each store view has its own wording, so the Magento 2 stock status text delivers different sentences in German and English. If you do not want to disclose stock, choose phrasings without a number. That is often sensible, as an exact quantity can inform competitors.
- Own wording per store view
- Placeholder {{qty}} optional, optionally rounded
- Colours from a fixed choice so contrast fits the theme
Stock display in listing, product page and cart with the Magento 2 stock status text
You choose where the status appears: in the category tile, on the product page, in the cart or everywhere. Backorder and sold-out items get their own texts. The schema.org availability in rich snippets still comes from the real Magento status and is not distorted by your wording. For products without stock management, such as digital items, the display stays off.
Important for search engines: structured data stays unchanged. The schema.org property availability still rests on the real Magento status, not on your wording. For items on backorder you can customise the Magento 2 backorder text and mention a delivery time.
- Display places switchable individually
- Products without stock management are skipped
- A product attribute overrides the rule table
When a Magento 2 stock status text pays off
These situations show where a differentiated stock display helps customers and revenue.
Show scarcity honestly
"Only 3 left" speeds up purchase decisions. The Magento 2 stock status text shows it only when true, because the number comes straight from the stock.
Spare parts and consumables
In B2B trade it matters whether a quantity can safely be delivered. Thresholds such as "50 pieces and more in stock" replace questions to sales.
Pre-order and backorder
For goods not in the warehouse, a dedicated text names the delivery time. That turns "unavailable" into a clear statement.
Multilingual shops
Every store view gets its own wording without changing language packs. The Magento 2 stock status text stays consistent in style everywhere.
Magento 2 stock display: default and Magento 2 stock status text
The difference shows with every product view.
| Topic | Magento default | With Mironsoft Stock Status Text |
|---|---|---|
| States | In stock or out of stock | Any number of levels by stock thresholds |
| Wording | Fixed text from the language pack | Own text per rule and store view |
| Look | Uniform standard display | Icon and colour per rule, traffic light possible |
| Quantity | Only via configuration, without rules | Placeholder {{qty}} or deliberately without a number |
| Backorder | General notice | Own text with delivery time |
| Special cases | Only by template changes | Attribute per product overrides the rules |
How we set up the stock status module after your purchase
This is how you get from purchase to the finished display.
Purchase and reply
After payment we get in touch within 2 working days and clarify the levels you want.
Thresholds and texts
Together we define ranges and wording per store view, optionally with the quantity placeholder.
Installation in your shop
We install the Magento 2 stock status text and adapt icons and colours to your Hyvä theme.
Choose display places
Category tile, product page and cart are switched individually.
Check and handover
We test edge cases such as backorder, products without stock management and special items, then hand over the configuration.
Stock status text, delivery date or notification? The Mironsoft modules compared
The Magento 2 stock status text answers the question "How much is there?". The expected delivery date is shown by the Estimated Delivery Date module, which works with shipping times and not with stock levels. Both can be combined: the status names availability, the date the delivery term.
If an item is sold out, Back in Stock Notification collects requests for an availability email. Used Product Notice, in contrast, marks the condition of used goods. For Hyvä shops this Magento 2 stock display plugin follows one principle: each module takes over exactly one task.
No download — personal setup instead
The Magento 2 stock status text is not listed here as a ready-made download for self-installation. The purchase is a service commission: we get in touch after the purchase, set up the module and agree on thresholds, texts and colours together with you to match your theme.
Frequently asked questions
Everything important about the Magento 2 stock status text: thresholds, languages and the purchase process.
How can I show "Only a few left in stock" in Magento 2?
Does the module change the real stock status?
How many rules can I create?
Can I hide the exact quantity?
Does it work with several stock sources?
Can I exclude single products?
How can I change the "In stock" text in Magento 2?
Does the module also show the stock quantity?
Does the stock status text affect rich snippets?
Can I download and install the module myself?
Magento 2 stock status text – Mironsoft