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.

Name:  How-to-Get-Logged-in-Customer-Data-in-Magento-2-Social-Media.png
Views: 215
Size:  25.3 KB

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

Methods to get logged in customer data in Magento 2:

  • using Object Manager
  • using Block class


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

View more threads in the same category: