Log in
Model

AttributeQuantityAndStock

Magento\InventoryCatalogRule\Model\AttributeQuantityAndStock

What it does

This class filters product collections based on inventory stock status and quantity when catalog rules are applied.

Developers use it to ensure catalog price rules only apply to products that meet specific stock availability criteria across different stock sources in a multi-source inventory setup.

It handles both default stock and custom inventory sources to determine product availability.

Public Methods

  • build()