I'm trying to get the first 4 products from a category that are in stock to show on the home page. I've got everything working the way I would like except it's pulling products that are out of stock.
addAttributeToFilter('is_in_stock', 1) and
isSaleable() but those didn't work.
$collection = Mage::getModel('catalog/category')-> load('33')-> getProductCollection()-> addAttributeToFilter('status', 1)-> addAttributeToSelect('*')-> addAttributeToSort('position')-> setPageSize(4);