Showing posts with label Get cart items for admin create order magento. Show all posts
Showing posts with label Get cart items for admin create order magento. Show all posts

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.... :)