21 Dec
21Dec

Knowing your potential buyers is the key to selling them effectively. Collecting the data of logged in customers provides you the important details to know who your customers are, what they want, and how to serve them better.

Admin needs to retrieve customer attributes value for such features. To get logged in customer data Magento 2 , there are two methods available


Methods to get logged in customer data in Magento 2:


1.  using Object Manager 

2. using Block class

Visit https://meetanshi.com/blog/get-logge...-in-magento-2/ to read the implementation of both the above methods.

Comments
* The email will not be published on the website.
I BUILT MY SITE FOR FREE USING