Get The Customer Address List In Magento



$id = 1; // ur cyst id
        $customer = Mage::getModel('customer/customer')
        ->load($id); //put customer id here
        $data = array();
        foreach ($customer->getAddresses() as $address)
        {
        $data = $addresstoArray();
        // var_dump($data);
        echo '<pre>';
        print_r($data);
        echo '</pre>';
        }


thanks to : http://www.deepcodeonline.com/blog/magento/how-to-get-the-customers-address-list-in-magento/

Share on Facebook




About Pragnesh Karia

Pragnesh Karia, Open Source Enthusiast, Software Professional, Software Developer, Technical Lead ,Magento, Joomla ,Joomla LMS , Moodel LMS ,PHP ,Mysql, Ajax, Javascript, Jquery, Linux, Fan of Open Sources , Annet Technologies , SEO Analyst , Mootools