cancel
Showing results for 
Search instead for 
Did you mean: 

Get billing address data from Customer session

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


Tags (2)