I want all the attributes of sales/order with their name and front-end label. I've tried following. But its not working.
By following code i was able to get all the fields. But its not giving me Front-end labels. I want front-end labels as well...
$resource = Mage::getSingleton('core/resource'); $readConnection = $resource->getConnection('core_read'); $tableName = $resource->getTableName('sales/order'); $salesfield = $readConnection->describeTable($tableName);
EDIT : Browsing following folder structure
1. app\code\core\Mage\Sales\Model\Resource\Order\Attribute 2. app\code\core\Mage\Sales\Model\Entity\Order\Attribute 3. app\code\core\Mage\Sales\Model\Mysql4\Order\Attribute
I found Attribute folder does not have collection.php file like 'catalog/product' or 'customer' modules have.