Magento 2 Knockout Js Simple Module

Magento 2 is heavily using Knockout Js on frontend. You can find  Knockout in Magento 2 on almost every page. For example in : on minicart vendor\magento\module-checkout\view\frontend\templates\cart\minicart.phtml <div id=”minicart-content-wrapper” data-bind=”scope: ‘minicart_content'”> <!– ko template: getTemplate() –><!– /ko –> </div> To understand how it works, I created a simple module Magento 2 Knockout…

Magento 2 How to create custom query

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…

Magento 2 Learning Resources

Magento 2 Learning Resources are listed as below : Official Magento 2 Developer Docs: http://devdocs.magento.com/ Alan Kent’s Blog: http://alankent.me/ Alan Storm’s Blog, Magento 2 category: http://alanstorm.com/category/magento-2 Karen Baker’s Blog, Magento 2 articles: http://karenbaker.me/category/magento-2/ MageClass, Magento2 tutorials, screencasts and up to date news: http://mageclass.com FireBear Studio blog, collection of tutorials and…

Please Add Widget