Category: Magento 2 (page 33 of 33)

Magento 2 – Get current logged in customer details

In this blog post, we will see how to retrieve currently logged in customer details in Magento 2. We can retrieve the currently logged in customer details using an instance of \Magento\Customer\Model\Session model through constructor. After initialization of model instant, we need to store instantiated object into protected variable like $customerSession. Session model contains so…

How to Enable Maintenance Mode in Magento 2

In this post we will get the knowledge about how to enable Maintenance Mode in Magento 2 store so your visitors know that you’re working on your website. Magento uses maintenance mode while you’re maintaining, upgrading, or reconfiguring your site. In order to put your Magento 2 store in maintenance mode, you need to create…

How to check if customer is logged in or not in Magento 2?

As we know, there are so many situation where we require to check whether customer is currently logged in or not. In this blog post you will learn about how to check customer is logged in or not in Magento 2. In order to check this situation you can use below code snippet. /** @var…

Magento 2 – How to Reindex using Command line

In Magento 1.x, store owner can directly do reindex from Index management. But in Magento 2.x there is no direct options available for Reindex from backend. As Magento 2.x provides reindex using command line. So lets discuss about how to do reindex using command line. If you need to do whole index management in the…

Newer posts