我有一个自定义的地址属性。在后端,订单页面我需要获得该属性值。
试试这个
$orderId = '100000001';
$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
$customAttributeValue = $order->getShippingAddress()->getAttributeText('your_custom_attribute');
我有一个自定义的地址属性。在后端,订单页面我需要获得该属性值。
试试这个
$orderId = '100000001';
$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
$customAttributeValue = $order->getShippingAddress()->getAttributeText('your_custom_attribute');