How to get all orders and all invoices from php in Magento?

How to programmatically access all orders and all accounts from php in Magento?

+7
source share
1 answer
<?php require_once("app/Mage.php"); $app = Mage::app(''); $salesModel=Mage::getModel("sales/order"); $salesCollection = $salesModel->getCollection(); foreach($salesCollection as $order) { $orderId= $order->getIncrementId(); echo $orderId; } ?> 
+24
source

All Articles