Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Stock Status Text: Show Availability by Stock Thresholds

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€79.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

6 Features

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.

01Threshold rules

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
Stores › Configuration › Stock status
20 and upIn stock · green
6 to 19Few in stock · yellow
1 to 5Only {{qty}} left · orange
0Currently sold out · grey
Frontend · Product tile
Oak shelf Nordlicht€79.00
Only 3 leftorange · clock icon
Preview store view: English
02Look and language

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
03Places and special cases

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
Stores › Configuration › Display places
Category tileYes
Product pageYes
CartNo
Backorder textDelivery in 7 to 10 days
Use cases

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.

Comparison

Magento 2 stock display: default and Magento 2 stock status text

The difference shows with every product view.

TopicMagento defaultWith Mironsoft Stock Status Text
StatesIn stock or out of stockAny number of levels by stock thresholds
WordingFixed text from the language packOwn text per rule and store view
LookUniform standard displayIcon and colour per rule, traffic light possible
QuantityOnly via configuration, without rulesPlaceholder {{qty}} or deliberately without a number
BackorderGeneral noticeOwn text with delivery time
Special casesOnly by template changesAttribute per product overrides the rules
Process

How we set up the stock status module after your purchase

This is how you get from purchase to the finished display.

1

Purchase and reply

After payment we get in touch within 2 working days and clarify the levels you want.

2

Thresholds and texts

Together we define ranges and wording per store view, optionally with the quantity placeholder.

3

Installation in your shop

We install the Magento 2 stock status text and adapt icons and colours to your Hyvä theme.

4

Choose display places

Category tile, product page and cart are switched individually.

5

Check and handover

We test edge cases such as backorder, products without stock management and special items, then hand over the configuration.

Delimitation

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.

04How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

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?
With a Magento 2 stock status text: you define a threshold, such as 1 to 5 pieces, and store the wording, icon and colour. The display appears automatically in listing and product page.
Does the module change the real stock status?
No, the Magento 2 stock status text only changes the display. Purchasability, stock management and the schema.org availability remain untouched.
How many rules can I create?
As many rules as you like. They are checked top to bottom; the first matching rule decides the text and a fallback rule catches everything else.
Can I hide the exact quantity?
Yes. If you do not use the {{qty}} placeholder, only your text appears, for example "Almost sold out", without a number.
Does it work with several stock sources?
The module uses the salable quantity Magento reports for the product and store view. How sources are summed up is still controlled by your Magento configuration.
Can I exclude single products?
Yes, via a product attribute you replace the rules with a custom text or hide the status for that item.
How can I change the "In stock" text in Magento 2?
The default text can be replaced via the rule table of the Magento 2 stock status text, per store view. One rule for all stock above a threshold is enough if you only want to change the wording.
Does the module also show the stock quantity?
Yes, if you use the {{qty}} placeholder. Without it the stock stays hidden and only your sentence appears.
Does the stock status text affect rich snippets?
No. The schema.org availability still comes from the real Magento status. The Magento 2 stock status text only changes what visitors read.
Can I download and install the module myself?
No. This is not a download product. After the purchase we install and configure the module in your shop personally.
Write Your Own Review
You're reviewing: Magento 2 stock status text – Mironsoft
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 stock status text – Mironsoft

Magento 2 stock status text – Mironsoft

€79.00