How to get the media folder URL programmatically in Magento 2
Magento 2 uses the pub/media folder for storing images and other media data. The following function returns its url for the current store: Continue Reading
Magento 2 uses the pub/media folder for storing images and other media data. The following function returns its url for the current store: Continue Reading
There is no class Magento\Catalog\Block\Product\Widget\Link in the the catalog_product_link widget declaration, since it is a virtual type. Besides, Magento\Catalog\Block\Product\Widget\Link is an alias to Magento\Catalog\Block\Widget\Link with a custom dependency injection. Please note that an argument entityResource has the Magento\Catalog\Model\ResourceModel\Product type. Continue Reading
For the standard jQuery .submit() method your submit event handler will be triggered after the standard form validation, but it could be inconvenient. Luckily, Magento 2 backend forms fire a custom beforeSubmit event: Continue Reading
In this post, we provide a complete overview of the Magento 2 technology stack. The new version of the popular ecommerce platform has been essentially revamped, so you will discover a lot of new features and requirements in comparison with 1.x. Below, we describe all major elements of the technology stack as well as provide some useful links. Continue Reading
Since Magento 2 introduces a bunch of brand-new features and improvements, it also has updated requirements related to hosting. Hence, solutions optimized for 1.X are no longer suitable for the new version of the ecommerce platform. Although they can still work with Magento 2, 1.X optimized hostings never provide the highest possible performance. That’s why we’d like to describe Magento 2 hosting services, but let’s discuss new system requirements first. Continue Reading
Today, we are going to shed light on the Magento 2 API, so let’s explain what this term means. Application program interface is a special interface which consists of protocols, routines,and tools designed to simplify the process of software development. Since APIs’ major purpose is to specify the way how different software parts interact within a system, they are often used to program graphical user interface components. Good APIs provide all building blocks necessary for developing an application, so a programmer only have to put them together. Although Magento 2 APIs incorporate the same principle, there are tons of nuances related to the ecommerce platform. So, what is the Magento 2 API? Continue Reading
First of all, create a page for your grid (
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