-
- Jeena Paradies

-
Total Posts: 20
Joined: 2008-03-10
|
How can I get my custom-fields with help of Mage::getModel(’sales/order’)?
<?php // I get my custom oldcustomerid within /template/customer/widget/name.html with this line $this->getObject()->getOldcustomerid()
// I would like to get it here too, like ->getName() and so on but It does not work, I just get NULL Mage::getModel('sales/order') ->getCollection() ->addAttributeToSelect('increment_id') ->addAttributeToFilter("state", Mage_Sales_Model_Order::STATE_NEW) ->load() ->getItems()[0] ->getBillingAddress() ->getOldcustomerid();
|