$customerAddressId = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping(); if ($customerAddressId){ $address = Mage::getModel('customer/address')->load($customerAddressId); } else { $address = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress(); }Hope it Helps .. Thanks....
Saturday, May 28
How to get Customer Billing & Shipping Address in Magento
Here is the script to get Customer Billing and Shipping Address
Subscribe to:
Post Comments (Atom)
Google Play
Magento Talks now available in Google Play. Please download it from Here
Followers
Hit Counter
Popular Posts
Blog Archive
-
▼
2011
(95)
-
▼
May
(11)
- How to Show Product Reviews on Product View Page i...
- How to get CMS Page ID in Magento
- How to Show the Products in Magento Home Page
- How to get Customer Billing & Shipping Address in ...
- Magento Product Thumbnail Image Switcher
- How to get Current URL in Magento
- How to get Most Viewed products in Magento
- How to get Top Rated Products in Magento
- How to Track Visitor´s Information in Magento
- How to create a custom module in magento
- How to get product price excluding tax in Magento
-
▼
May
(11)
Feedjit
Subscribe via email
My Blog List
Powered by Blogger.
About Me
- Mohan Natarajan
- Chennai, Tamil Nadu, India
- Hi, this is Mohan Natarajan working as a Senior Software Engineer at DCKAP Technologies.I have completed BE Computer Science and Engineering in Ranipet Engineering College. I did my schooling in Govt Boys Hr Sec School Timiri.(Vellore Dist)
Categories
Text Widget
Pages
Mohan Natarajan Powered by Blogger
Hi,
ReplyDeletei used this code in magento 1.6.1.0 in methods.phtml page, when i am trying to get the address, and i am placing order as guest and trying to get the address where we select payment method means in methods.phtml, its getting the address but its getting the address which i used for previous user.can you please tell me what problem exactly i have
It may be because of session problem. so it will get cleared once the customer placed the order. any how i will try to find the solution for this as soon as possible.
ReplyDeleteHi,
ReplyDeleteThis is Awesome Post thanks..
Web Development India | Wedding Websites