cancel
Showing results for 
Search instead for 
Did you mean: 

Get billing address data from Customer session

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Get billing address data from Customer session

Hello

I'm looking to get billing address data (Company, phone, Country , state) from logged in user.

i used this code to get the name and email user :

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $objectManager->create('Magento\Customer\Model\Session');

$fname = $customerSession->getCustomer()->getFirstname();
$lname =  $customerSession->getCustomer()->getlastname();
$email = $customerSession->getCustomer()->getEmail();

Thank you