Anbei ein kleines Codeschnipsel, der alle Bestellungen inkl. Filterung nach Datum ausliest und entsprechende Werte zurückgibt.
$from = '2010-11-01 00:00:00'; $to = '2010-11-30 23:59:59'; /* @var $orders Mage_Sales_Model_Order */ $orders = Mage::getModel('sales/order') ->getCollection() ->addAttributeToSelect(array('status', 'state')) ->addAttributeToFilter('created_at', array('from' => $from, 'to' => $to, 'datetime' => true) ); echo 'firstname;lastname;email;orderid;orderstatus\n'; foreach ($orders as $order) { $orderId = $order->getId(); $orderStatus = $order->getStatusLabel(); $customerId = $order->getCustomerId(); $customer = Mage::getModel('customer/customer')->load($customerId); $lastname = $customer->getLastname(); $firstname = $customer->getFirstname(); $email = $customer->getEmail(); echo $firstname . ';' . $lastname . ';' . $email . ';' . $orderId . ';' . $orderStatus . '\n'; } ?>