Category PHP

How to login as customer in Magento 2

Enable Magento 2 log in as Customer Enable the feature In the admin page click Stores -> Settings -> Configuration. In the left panel, expand Customers and choose Login as Customer. Option Value Description Enable Login as Customer Yes / No Enable/Disable the Login…

How to Print Log in Magento 2

Logs in Magento 2 consist of system information records for the analysis in the future. One of the most common examples of such events is the error log. Developers know the pain of errors and the process to deliver a…

How to Instantiate a Model in Magento 2

We all know that in Magento 1 We can easily instantiate model using Mage::getModel and Mage::getSingleton methods. But instantiate a model in Magento 2 something different. In Magento 2 we can instantiate a model using Object Manager. Yes, you heard it correctly, ObjectManager is a…