I am trying to get results of products by stock quantity filter
i use this inside the constructor of my helper class.
The question is how do i add stock quantity from and to in this?
$this->product_lib->create()->addAttributeToSelect('*')-> addCategoriesFilter(array('in' => array(1,2,3))-> addFieldToFilter('price', ['from' => $min_price, 'to' => $max_price]) ->load();
When i try to additional addFieldToFilter with quantity it says not found. What i am looking for is to achieve the same results as in catalog->products filter.
Any suggestion is helpful.
Also if possible can you suggest where to do i look for these kinds of information? Is there any book that would be helpful?