public function getAllSimpleItems($order)
    {
        $items = array();

        foreach ($order->getAllItems() as $item) {
            if ($item->getProductType() == 'simple') {
                $items[] = $item;
            }
        }

        return $items;
    }
public function getAllSimpleItems($order)
    {
        $items = array();

        foreach ($order->getAllItems() as $item) {
            if ($item->getProductType() == 'simple') {
                $items[] = $item;
            }
        }

        return $items;
    }
public function getAllSimpleItems ( $ order ) { $ items = array ( ) ; foreach ( $ order -> getAllItems ( ) as $ item ) { if ( $ item -> getProductType ( ) == 'simple' ) { $ items [ ] = $ item ; } } return $ items ; }
Get all the simple items in an order.

@param Mage_Shipping_Model_Rate_Request|Mage_Sales_Model_Order $order Order to retrieve items for

@return array List of simple products from order
Get all the simple items in an order .