我有客户 ID,因此当我执行以下操作以获取其他运输信息时,该国家/地区为空。有人知道另一种获取国家的方法或知道为什么它是空的吗?
//get shipping address
$shippingaddress = Mage::getModel('customer/address')->load($customer->default_shipping);
$addressdata = $shippingaddress ->getData();
$addressdata['city'];
$addressdata['postcode'];
$addressdata['region'];
$addressdata['telephone'];
$addressdata['country'];