获取用户邮寄地址

//获取用户默认邮寄地址
public function productAddress(){
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
foreach(Mage::getSingleton('customer/session')->getCustomer()->getAddresses() as $address){
$customerAddress[] = $address->toArray();
}
}
return $customerAddress;
}

posted @ 2017-04-01 14:54  思风雨  阅读(187)  评论(0编辑  收藏  举报