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

Magento 2 Low Stock Message: “Only X left” below a Threshold

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
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 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 stock hints

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.

01Rules

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
Stores › Configuration › Mironsoft › Stock Level Message
Rule 1 · category Furniture
from 5 units (example value)
Rule 2 · all products
from 3 units (example value)
Rounded display below
10 units (example value)
Frontend · product page
Level 1 · more than 10no hint
Level 2 · 4 to 10Limited stock
Level 3 · 1 to 3Only 3 left in stock (example)
02Texts and levels

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
03Placement

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
Frontend · cart
Product A × 5Only 3 available (example)
Adjust quantitybutton
Example data, not real stock
Stock Level Message › Preview
Product A · stock 2
Only 2 left in stock (example)
Product B · stock 40
no hint
Preview with example values
04Control

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
Use cases

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.

Comparison

Magento 2 low stock message: without and with the module compared

The difference to the default Magento threshold.

TopicWithout moduleWith Mironsoft Stock Level Message
ThresholdOne global limit for the whole shopRules per category, attribute set and product
TextsFixed default textOwn texts with placeholders per store view
PresentationPlain text without levelsColour, icon and levels per rule
PlacementProduct page onlyProduct page, listing, mini cart and cart
CurrentnessOutdated in cache or missingCurrent quantity despite full page cache
Setup

How we set up the Magento 2 low stock message for you

The process after you place your order.

1

Briefing

You name the categories with a quantity hint, thresholds, levels and texts.

2

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.

3

Texts and colours

We word the hints in your tone and match the colours with the theme.

4

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.

5

Handover

Your team gets an introduction to rules, priorities and the preview.

Scope

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.

05How the purchase works

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.

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 thresholds, texts, cache and how the purchase works.

How can I show a Magento 2 low stock message only when quantity is low?
You set a threshold. Only below it does the hint appear, for example “Only 3 left in stock”. Above it the page shows no number.
How can I change “Only X left in stock” in Magento 2?
You maintain the text per store view in the admin and put the placeholder {qty} where you want the number.
Which stock quantity is shown?
The salable quantity from MSI, that is the quantity minus reservations. With several sources the sum of the assigned sources counts.
Can I limit the Magento 2 low stock message to certain categories?
Yes, rules apply per category, attribute set, brand or product, with priority when they overlap.
Does the page stay in the full page cache?
Yes. The Magento 2 low stock message loads the quantity on page view with a small Alpine.js request while the page itself stays cached.
Does the message reveal the exact warehouse figure?
Only if you want it to. The Magento 2 low stock message can also show rounded texts such as “Fewer than 10”.
What happens with unlimited stock or backorders?
With unlimited stock no hint appears, for backorders a separate text can be shown.
Does the Magento 2 low stock message work with Hyvä?
Yes, the display is built with Alpine.js and needs no additional library.
How does this differ from status texts?
Status texts only change the words for in stock or out of stock. This module works with quantities, thresholds and levels.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module for you personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 Low Stock Message – Mironsoft Stock Level Message
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 Low Stock Message – Mironsoft Stock Level Message

Magento 2 Low Stock Message – Mironsoft Stock Level Message

€79.00