- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2018
05:20 AM
02-13-2018
05:20 AM
How to get default selected customer shipping address?
How to get default selected customer shipping address?
if (is_null($this->_address)) { if ($this->isCustomerLoggedIn()) { $this->_address = $this->getQuote()->getShippingAddress(); } else { $ship = $this->getQuote()->getShippingAddress(); $ship_country = $ship->getCountryId(); if(!empty($ship_country)) $this->_address = $ship; else $this->_address = Mage::getModel('sales/quote_address'); } }
Please reply if you have any idea.
Thanks.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2018
05:00 AM
02-21-2018
05:00 AM
Re: How to get default selected customer shipping address?
Hi Ashish,
Isn't
$this->getQuote()->getBillingAddress();
Working ?
Else let us know more details as to what you are trying to do.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2018
02:14 AM
03-05-2018
02:14 AM
Re: How to get default selected customer shipping address?
@Nethues_Sunil thanks for the reply.
But not getting from given code line.
If you have any other idea then reply here.