Jump to content


Photo

How to Get Logged in Customer Data in Magento 2


  • Please log in to reply
No replies to this topic

#1 Meetanshi

Meetanshi

    Advanced Member

  • Members
  • PipPipPip
  • 535 posts

Posted 14 December 2018 - 05:13 AM

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 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-logged-in-customer-data-in-magento-2/ to read the implementation of both the above methods.



looking for the best presta addons with outstanding support? check this: PrestaShop Modules