更新时间:2023-11-30 12:55:04
在这里:
// change these IDs to match your customer and address
$customerId = 136;
$addressId = 92;
$customer = Mage::getModel('customer/customer')->load($customerId);
$address = $customer->getAddressById($addressId);
$address->setStreet('123 Main Street');
$address->setCity('Anytown');
$address->save();
如果您需要获取地址ID的方法,请告诉我您要完成的工作,并且可以让您知道实现此目的的***方法.
If you need ways to obtain address IDs, please let me know what you are trying to accomplish and I can let you know the best way to do so.