0

how can i get all fields of an order in magento?

2 Answers 2

0

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());
0

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
}

Not the answer you're looking for? Browse other questions tagged or ask your own question.