how can i get all fields of an order in magento?
2 Answers
For Order General Info:
$order = Mage::getModel('sales/order')->load($orderid);
zend_debug::dump($order->getData());
For Order Billing Address:
zend_debug::dump($order->getBillingAddress());
For Order Shipping Address:
zend_debug::dump($order->getShippingAddress());
you can get the data of an order as an array then loop through it:
$data = $order->getData();
foreach ($data as $key => $value) {
//so something with $key or $value
}