Update: I recommend to use Gulp instead of Grunt and use SASS instead of Less. Magento 2 will move from LESS to SASS from Alan Kent When you’re creating a new theme or adjusting current theme, to see a new change you have three options : Frontend Developer Workflow References : Simple…

Magento 2 How to create custom query that is the question sometime is popped up on your head. Here is how I create my own custom queries in Magento 2. Currently, I figured out two ways : 1/ Take advantage of using Magento Resource Connection. $themeId=3; $this->_resources = \Magento\Framework\App\ObjectManager::getInstance() ->get(‘Magento\Framework\App\ResourceConnection’); $connection= $this->_resources->getConnection(); $select…

Logging variables or custom messages to a custom file are usually used in every development of building websites. In Magento 1, it was common to segment logs into different files (to separate logs for 3rd party extensions etc.). That’s as easy as changing the $file parameter of Mage::log. But in magento…

Goal: After reading this tutorial Magento 2 How to get all xml loaded tree , you can output any layout xml file of any page in magento 2. Sometime you have a desire to print all xml loaded tree to check whether your custom xml handles are loaded or not ?…