Categories
Magento

How to check if a customer is logged in?

Let’s discuss, how to check if the customer is logged in at any class (controller, model, block, etc) or at the template.

Categories
Magento

How to use ObjectManager directly at Magento 2

The short answer is you should not use the ObjectManager directly at all. It is a bad practice, and lets talk why.

Categories
Magento

Magento 2 + Modernizr

Modernizr is needed to determine which of the JS, HTML and CSS capabilities the client browser can handle and which cannot. It is very useful to use its functionality in Magento.