To add a new column on admin customer group page we will use extension attributes, which are new to Magento 2. They extend default functionality and often use more complex data types than custom attributes. These attributes do not appear on the GUI. This method is simple to implement, however, it is suitable for version 2.2 and earlier ones. First I will explain to you the implementation for 2.2 and earlier versions, and then we’ll proceed to 2.3.
On November 28, 2018 Magento released new version of its ecommerce solution – Magento 2.3.0. First and foremost, we are very glad that Magento is constantly working on empowering merchants and improving user experience, and we congratulate the company with the new release. Read more
In this article, we will take a look at developing the integration of Magento 2 with any external ERP system. Magento 2.2.4 compatible syntax will be used to show the examples of code. The protocol of the interaction with ERP will be REST / JSON API, a two-way data exchange.
The article is dedicated to catalog product, the tables used for creating attributes, attribute set, attribute group. The first part of the article has already been published. Don’t forget to review EAV in Magento 2 in order to have a full understanding of the issue. Read more
Routing in Magento is one of the most essential parts every developer should be aware of. Processing URL request and router classes responsible for matching and processing that request influence the application flow. Let’s get into the nuts and bolts together. Read more
Events are commonly used in applications to handle external actions or input when, for example, a user clicks a mouse. Each action is interpreted as an event. Events are part of the Event-Observer pattern. This design pattern is characterized by objects (subjects) and their list of dependents (observers). Events trigger objects to notify their observers of any state changes, usually by calling one of their methods. It is a very common programming concept that works well to decouple the observed code from the observers. Read more
Magento 1
Request Flow
- app/Mage.php (Mage::app()->run())
- app/code/core/Mage/Core/Model/App.php
- Init and Dispatch controller $this->getFrontController()->dispatch();
- app/code/core/Mage/Core/Controller/Varien/Front.php Read more
Before you start, please check the first part: Database in Magento 2: Models, Resource Models, and Collections.
There are several important concepts that have been incorporated into Magento 2, such as plugins, dependency injection, and service contracts. These demonstrate that, overall, the changes in going from Magento 1 to Magento 2 are focused more on the way you do things — to be more flexible and efficient — rather than introducing new features. Read more
In order to get onto the issue, let’s have a look at the method loadFileLayoutUpdatesXml() of the class Magento\Framework\View\Model\Layout\Merge.
The physical process of rendering is conceptually the same as in Magento 1, but it differs from the code and architectural levels. Data meant for output to the browser accumulates in the controller in the internal variable Zend\Stdlib\Message::content, and is displayed by calling Magento\Framework\HTTP\PhpEnvironment::appendBody(). Read more