我正在尝试将客户从旧站点导入我的新 magento 安装,并希望将客户地址设置为 magento 客户默认帐单地址,我尝试过
$customer = $this->getCustomerModel();
$address = Mage::getModel('customer/address');
$customer->addAddress($results[0]['address']); //this says trying to save invalide object
$address ->addAddress($results[0]['address']); //this says undefined method
$results[0]['address'] 此字段包含街道地址我还有城市、州、邮政编码、邮政编码
关于如何将我的客户地址设置为其默认帐单或送货地址的任何想法..