I'm using Magento 2.2.6
, How can I get the email ID of logged in user to show in header.
Thanks.
customer-accountcustomer-sessionemailmagento2magento2.2.6
I'm using Magento 2.2.6
, How can I get the email ID of logged in user to show in header.
Thanks.
Best Answer
First, create an instance in header.phtml file as below and also if more than one store is available and one wants to get mail in only one of the stores.