Stock-aware product filter

Stock-aware product filter for Shop-Script

Filter shows only what is actually in stock

No reviews yet

$23.99 per year

7 days free trial is available for accounts in the Webasyst Cloud.

Your review
Installs
< 10
Version
1.0.0
Updated
September 2, 2026
Additional licenses
No discount
Minimal requirements

Why

A customer picks “black, size M” in a category — and sees dresses that have no black M left in stock. When Shop-Script filters by SKU features, it only checks that such an SKU exists for the product; it never looks at the stock balance.

Then one of two things happens: the customer opens the product page, hits “out of stock” and leaves, or places an order for something you do not have and a manager calls to apologise. Both are lost money — except in the first case you never even find out.

What the plugin does

It adds a stock condition to the very same query. The filter starts answering “what can I buy right now” instead of “what has ever been added to the catalogue”.

  • the customer picked a colour and a size — the listing keeps only products that have this combination in stock;
  • the stock balance is taken from the exact SKU that matched the selected values, not from the product “on average”;
  • if stock is not tracked for an item (no balance set), the product stays in the listing — the plugin only hides what is definitely gone.

Settings

  • When to hide out-of-stock items: “only when filtering by features” — the category listing stays complete and the restriction kicks in only after a colour or a size is picked; “in all product listings” — items with no stock are hidden everywhere on the storefront.
  • Let the customer show everything — adds the instock=0 parameter to the page address, which lifts the restriction. A “Show everything, including out of stock” link can be placed in the storefront template.

How it works

The plugin hooks the standard products_collection.prepared event: the product collection is already built but the query has not run yet — that is where the stock condition is added. It creates no tables of its own, writes nothing to the catalogue, uses no external services and affects neither prices nor order totals. In the backend it appears nowhere except its own settings page: backend product lists stay complete.

Compatibility

  • Shop-Script 9.4.1 and newer, Webasyst 2.0 interface; the legacy 1.3 interface is supported as well;
  • compatible with the PREMIUM licence: units of measure, quantity multiples and fractional quantities are neither read nor changed;
  • works with any storefront theme — it adds no markup of its own to pages;
  • no backend impact: the condition applies on the storefront only;
  • localisation: English, Russian.

Design-site.pro

All products of this developer ›