我将客户地址保存在customer_address_entity
表中。一切都很好,但我想得到最后生成的entity_id
. 有人可以帮助我吗?
我有以下代码;
$customAddress = Mage::getModel('customer/address');
$customAddress->setData($_custom_address)
->setCustomerId($customer->getId())
->setIsDefaultBilling('0')
->setIsDefaultShipping('1')
->setSaveInAddressBook('1');
try {
$customAddress->save();
} catch (Exception $ex) {
Mage::log("\n Address save Error:: \n" . $ex->getMessage(), null, $this->log_entry_file);
}