How to get Customer in product view in Magento 2

- Fire development, Magento 2

Magento 2 Development

You can get customer_id, getName(), and getEmail() in the product view in Magento 2 directly from customer session. Utilize the following code:

Source (Stackexchange Question)(Amit Bera)

More tips from the Cookbook