Showing posts with label Get all items in cart when create order in admin Magento. Show all posts
Showing posts with label Get all items in cart when create order in admin 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.... :)