I can get sales revenue with this
$orderTotals = Mage::getModel( 'sales/order' )->getCollection() ->addAttributeToFilter( 'created_at', array( 'from' => date( 'Y-m-d' ), 'to' => date( 'Y-m-d', strtotime( '+1 days' ) ) ) ) ->addAttributeToSelect( 'grand_total' ) ->getColumnValues( 'grand_total' ); $totalSum = array_sum( $orderTotals ); $totalSum = Mage::helper( 'core' )->currency( $totalSum, true, false ); echo $totalSum;
But how do I get the total amount of orders and sales shipping total?
also is there a better way to find current days orders as I think I've done it a confusing way. Will this only show today? It appears to look right.
Just a thought, is there a way to count the orders?