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

Magento 2 In Stock Filter for Category and Search Pages

Magento 2 Extension Hyvä Ready Magento 2.4.x

SKU: INSTOCKONLYFILTER1

  • Only available toggle in category and search results
  • default state definable per category (on, off, per group)
  • works together with layered navigation and existing filters
  • Alpine toggle, state stays shareable via URL
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 In Stock Filter: one toggle instead of frustrating results

With the In Stock Only Filter from Mironsoft your shop shows only available products when wanted. In a category or in search results, customers switch on only available and immediately see just the items they can actually order. You set the default state per category so that, for example, a section with many seasonal items shows only what is available without any action from the customer. The toggle runs on Alpine.js and fits your existing layered navigation. The Magento 2 in stock filter is easy to configure.

Toggle in the navigation

Only available appears as a filter element in the layered navigation or as a toggle above the list.

Default state per category

For each category you define whether the filter is on, off or on only for certain customer groups.

Also in search

The same logic applies to the search results page, optionally with its own default.

Shareable URL

The state is stored as a URL parameter, so links to filtered lists work.

Your own availability rule

You decide whether backorderable, pre-orderable or low-stock products count as available.

Correct product counts

Counts, pagination and the numbers of the other filters adapt to the state.

Why only available products

Why customers want a Magento 2 in stock filter

Nothing frustrates more than a long list in which every second item cannot be ordered. Merchants therefore search for a Magento 2 only in stock filter, for Magento 2 hide out of stock products or for a Magento 2 availability filter. By default Magento only knows the global setting to display out-of-stock products or not, and it applies to the whole shop.

Hiding everything is not always right either: search engines know the pages, returning customers look for reorderable goods, and sold-out classics create demand. The toggle gives the customer the choice, and the default per category gives you control with a Magento 2 in stock filter exactly where it makes sense.

01Toggle

Magento 2 In Stock Filter as a toggle in the category

The toggle appears in the sidebar or as a compact bar above the product grid, whichever suits your Hyvä theme. One click narrows the list to available products without a full page change, and the counters of the other filters are updated. On smartphones it sits in the filter dialog so it does not use space above the grid.

  • Position in sidebar or above the grid
  • Counters of the other filters adapt
  • In the filter dialog on smartphones
Frontend › Category
Only availableon
Products (example)48 → 31
Reset filtersbutton
Admin › Category › Availability filter
Defaulton (example)
Subcategoriesinherit
For customer group Retaileroff
02Default

Default state per category for the Magento 2 In Stock Filter

Not every category needs the same preset. For seasonal goods or discontinued models you switch the filter on in advance, for collectibles or spare parts it stays off. The rule can be inherited by subcategories and differentiated for customer groups, for example retailers who may reorder. If the filter is changed manually, the session remembers the customer decision.

  • On, off or group dependent
  • Inheritance to subcategories
  • Customer decision kept during the session
03Search

The Magento 2 In Stock Filter in search results as well

On the search results page the filter works as in the category. You decide whether available hits are pre-selected or whether the customer sets the toggle. The module uses the existing search index; no separate search engine is introduced. After stock changes the indexer updates the availability on which the filter is based.

  • Own preset for search results
  • Uses the existing search index
  • Updated after stock changes via the indexer
Frontend › Search
Search termexample
Hits120 → 74
Only availableon
Stores › Configuration › Mironsoft › In Stock Only Filter
Backorderable counts as availableyes (example)
Minimum quantity1 (example value)
Exception attributealways_show
04Rules

What counts as available? Rules for the Magento 2 In Stock Filter

Available does not always mean in stock. You choose whether products with allowed backorders, pre-orders or remaining quantities below a threshold count as available. Configurable products count as available as soon as one variant can be ordered, bundles as you prefer. Products you must always show are excluded from the filter through an attribute.

  • Backorder, pre-order and remaining quantity adjustable
  • Configurables: one orderable variant is enough
  • Exceptions through a product attribute
Use cases

Where a Magento 2 in stock filter helps in everyday shop work

Typical situations in which a Magento 2 in stock filter toggle convinces.

Seasonal and promotional goods

After the season only a few sizes remain. The filter keeps lists clean without you having to disable products.

Fashion and shoes

Customers only want to see sizes that are available. The toggle shows hits that can really be ordered.

Spare parts and accessories

Technicians quickly look for what ships today and switch on only available before searching.

Retailer shops

Group-dependent defaults show end customers only stock items while retailers also see reorderable goods.

Comparison

Magento 2 In Stock Filter: with and without the module compared

The difference to the global Magento setting.

TopicWithout the moduleWith Mironsoft In Stock Only Filter
ScopeOne setting for the whole shopDefault per category and customer group
Customer choiceNoneToggle in category and search
Meaning of availableStock status onlyBackorder, pre-order and remaining quantity selectable
Filter countsAlso count unavailable itemsCounters adapt
Sharing linksNot possibleState as URL parameter
Setup

How we set up the Magento 2 In Stock Filter for you

The process after you place your order.

1

Kick-off

You define what available means and in which categories the filter should be active in advance.

2

Installation

We install the module, set up the Magento 2 in stock filter for your store views and place the toggle.

3

Defaults

We store the default states per category and customer group and run the reindex.

4

Testing

We check the Magento 2 in stock filter in category, search, pagination, filter counts and configurable products.

5

Handover

Your team gets a walkthrough of how default states and exceptions are maintained.

Scope

Scope compared to layered navigation and stock display

The existing layered navigation filters by attributes such as brand, colour or price. The In Stock Only Filter adds availability as an additional filter and does not replace it. It works together with all filters and changes no stock data, it only changes the display.

For its Magento 2 in stock filter the module uses the stock status of your shop, whether default stock or multi-source inventory. The interface runs on Alpine.js in the Hyvä theme without an additional library.

05How the purchase works

No download, but a personal setup

In Stock Only Filter is not listed here as a ready-made download for self-installation. The purchase is an order for our service: we get in touch after the purchase, install the module in your shop and agree on default states and availability rules 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 the toggle, default state, search and how the purchase works.

How can I show only available products in Magento 2?
With the In Stock Only Filter customers switch on only available in a category or search, or you activate the filter in advance for a category.
How can I hide out-of-stock products in Magento 2, but only in selected categories?
The default state is set per category and inheritable by subcategories. Other areas keep showing all products.
Does the Magento 2 in stock filter work with layered navigation?
Yes. It appears as an additional filter and the counters of the other filters adapt to the state.
Does the filter apply to search as well?
Yes, with its own preset for search results, based on the existing search index.
What counts as available in a Magento 2 in stock filter?
You set it: stock status, backorder, pre-order or remaining quantities above a threshold.
How are configurable products treated?
They count as available as soon as at least one variant can be ordered.
Can the customer switch the Magento 2 in stock filter off again?
Yes, the toggle can be flipped at any time. The decision is kept during the session.
Does the filter work with Hyvä and multi-source inventory?
Yes, the interface is built with Alpine.js and the module reads the stock status of your shop.
Does the Magento 2 in stock filter change my stock data?
No. It only changes how lists are displayed, not stock levels or product status.
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 personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 In Stock Filter – Mironsoft In Stock Only Filter
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 In Stock Filter – Mironsoft In Stock Only Filter

Magento 2 In Stock Filter – Mironsoft In Stock Only Filter

€79.00