I'm trying to add a product to a quote in admin (programmatically), the model of the quote is sales/quote, as seen in sales_order_place.

Problem is the quote will not accept products which are out of stock, even though I've called Mage::helper('catalog/product')->setSkipSaleableCheck(true);?

I want to have the ability to add products to the quote regardless of their stock status.

Any ideas?


I went the route of resolving things by:

$stock_item = $product->getStockItem();
//then add product to quote

This way the quote sees the product as in stock, but because you don't call up a save(); function, changes aren't pushed to the DB. Strange though that the setSkipSaleableCheck function doesn't seem to help resolve things.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.