In Magento 1 you were able to add a product filter to a Stock Item collection in the Mage_CatalogInventory_Model_Resource_Stock_Item_Collection class. This functionality appears to be missing along with the other methods included in the Magento 1 class.

Additionally, it appears that you cannot addFieldToFilter to a Stock Item collection due to the models that it extends (i.e.


is extended as opposed to something like the Product Collection of which extends:


So my question is, how are you supposed to add a product filter to a stock item collection on Magento 2 (And indeed if it's possible).

Any help is appreciated!

  • I'm typing down same question, do you have any way by now? – Lan Nguyen Jun 7 '19 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.