Wednesday, 5 November 2014

How to get cart items when creating new order in backend Magento


How to get cart items when creating new order in backend Magento

$oQuote = $this->_getOrderCreateModel()->getQuote();
$aProductsInQuote = $oQuote->getAllItems();
   
foreach ( $aProductsInQuote as $oProductInQuote )
 {
   $oProductTemp = Mage::getModel('catalog/product')->load($oProductInQuote->getProductId());
 }

That's it... Enjoy Chandresh rana's Coding.... :)

No comments: