← Back to Changelog

Variant-Scoped Availability Filtering

A filter combining options.size eq M and available eq true, both scoped to the same variant, with the color facet counting only in-stock M variants

Filtering by size or color together with in-stock now checks both against the same variant. Before, a product could pass because one variant matched the size while a different, sold-out variant covered availability.

Now Layers only returns products where a single variant meets every condition and is actually in stock. Facet counts follow that matched variant too, so selecting Size M and In Stock counts colors only from in-stock M variants, not from siblings in other sizes.

This applies automatically across search, browse, and collections wherever available combines with an option or variant filter.

Learn more