How to create Admin Grid in Magento 2

First of all, create a page for your grid (). Then, add a UI component in layout for view/adminhtml/layout/samplegrid_index_index.xml. Continue Reading

First of all, create a page for your grid (). Then, add a UI component in layout for view/adminhtml/layout/samplegrid_index_index.xml. Continue Reading

You can get the list of events/observers in Magento 2 in the \Magento\Framework\Event\Manager::dispatch() method. Since there is no access to the logger, you will have to add a logger instance in the constructor: Continue Reading

To render image in Magento 2 Adminhtml grids, first of all you have to add a grid column with a renderer block name as a parameter: Continue Reading

To add a custom Javascript file in head in Magento 2, use the following example: Continue Reading

While overriding block via preference, Magento 2 can show an error when you add a core registry in a construct method. Continue Reading

Youк popup window can be based on the following example: Continue Reading

Most entrepreneurs are always trying to find out all pros and cons of every new tool they are going to utilize, and ecommerce platforms are not the exception. Since nowadays there are tons of available solutions, it is hard to decide which one deserves attention. Therefore, we are here willing to help you and in the following post will describe Magento 2 in comparison with its closest competitor OpenCart. You can also find a more detailed comparison and the guide to the Magento 2 OpenCart migration here: How to Migrate from OpenCart to Magento 2 or Sync Data Between Them. Continue Reading

The following Magento 2 tutorial will help you upgrade script for a new version of your extension by adding new tables and columns to a database. Continue Reading

In Magento 2, you can use the following code to redirect customers to another URL with the help of controller: Continue Reading

There are at least two use cases in this situation. In Magento 2 you can custom mini-libraries with such short popular global functions as rm_customer_logged_in(): Continue Reading