Practical Way of Using VirtualType in Magento 2

  Let’s learn how to do Practical Way of Using VirtualType in Magento 2 Hi everyone, sometimes you are in a situation when you need to use a class, for example the Sales Order grid collection (Magento\Sales\Model\ResourceModel\Order\Grid\Collection) (sales_order_grid UI Component) But you need to use a different value for a parameter, for example, you want to […]

Read More

How to Add New Total to Email in Magento 2

In this topic we will show you How to Add New Total to Email in Magento 2 through 2 steps: Step 1: Create the file: sales_email_order_items.xml Step 2: Create the block new.order.totals Hello everyone! In Magento 2, you can add new total to block total of email when sending the email. In this blog, I […]

Read More

How to Create Module Route in Magento 2

In this topic we will show you How to create module route in Magento 2 and route’s feature : Step 1: Frontend Route Step 2: Admin Route Step 3: Use Route to rewrite controller In magento 2, route is module name in browser url. The url format is: http://yoursite.com/index.php/[route_name]/[controller_name]/[action_name] Example: http://yoursite.com/index.php/customer/account/login We can define route […]

Read More

How to Create Multiple Layers of Modal in Magento 2

In this topic we will show you How to Create Multiple Layers of Modal in Magento 2 through 2 steps: Step 1 : Create your first Modal layer Step 2: Create the second Modal layer In Magento 2, occasionally you will see something like this: This type of UX is called Modal. It allows users to […]

Read More

How to Write Unit Test in Magento 2 (Part 1)

In this topic we will show you How to Write Unit Test in Magento 2 (Part 1) through 5 steps: Step 1: Create module Magestore_HelloMagento Step 2: Create Model HelloMessage.php Step 3: Create UnitTest Model Step 4: Add the UnitTest to the Test Suite Step 5: Run UnitTest Magento 2 has pre-installed PHPUnit, an automated testing […]

Read More

How to Change Default  Icon for Top Level Menu Backend in Magento 2

  According to the data in front of us, a Magento 2 team ,thought a lot about finding solutions to reduce the coherent between the various parts of the system ,  and think about how to segment the configuration files, first to not fall into the same first version problems, sometimes you find in front […]

Read More

How to Create Admin Menu in Magento 2

In this topic we will show you how to create an admin menu in Magento 2 through 3 steps: Step 1: Create menu.XML file Step 2: Add menu items Step 3: Set menu is active by controller file. Magento 2 uses left menu in backend instead of above menu in Magento 1. Level 0 menu […]

Read More

How to Create and Use Configuration in Magento 2

  To Create and Use Configuration in Magento 2 you need to follow: Step 1: Create system.xml file Step 2: Set default configuration value Step 3: Set data for select configuration Step 4: Use configurations Magento 2 provides configuration system in backend. It stores some settings of your extensions which can be changed by admin. […]

Read More

How to Check ACL Permission in Magento 2

Here are some steps for you to follow in this How to Check ACL Permission in Magento 2: Step 1: Create a model Step 2: Use the function checkPermission  The Magento backend application  is where a system owner manages their Magento store. This is where users interact with web forms to add new products, change […]

Read More

How To Validate Form Using Mage/validation and Knockout js in Magento 2

Magento 2 used Knockout js on frontend pages. It’s good for improvement but hard for developers. In Magento 2, Knockout js javascript library which is used on frontend. It implements Model-View-View Model (MVVM) design pattern. You might find Knockout in Magento 2 on almost every page. The place where it’s most present is the checkout page. […]

Read More