如何在magento订单送货地址中获取自定义地址属性值?

时间:2013-01-01 04:37:39

标签: php zend-framework magento

我有自定义地址属性。在后端,订单页面我需要获取该属性值。

1 个答案:

答案 0 :(得分:0)

试试这个

$orderId = '100000001';

$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);

$customAttributeValue = $order->getShippingAddress()->getAttributeText('your_custom_attribute');