Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个自定义地址属性。在后端,订单页面我需要获取该属性值。
试试这个
$orderId = '100000001'; $order = Mage::getModel('sales/order')->loadByIncrementId($orderId); $customAttributeValue = $order->getShippingAddress()->getAttributeText('your_custom_attribute');