The topic is believed to be of a great importance, as it is dedicated to a currently central theme “How to create a theme for Magento 2.”. At the time of writing the recent version is 2.1.7. If we compare the first version with the second one, the latter is considered as the most up-to-date and upgraded. As for theme development, modular code structure has been implemented. Now all static files such as js, CSS, and images located in web folder while skin folder has been removed from Magento home directory. (more…)
The modern e-commerce market is teeming with web stores that differ nothing from each other. The only point that helps distinguish a web shop is well-designed features implemented on the website. Today we’ve selected five webshops running on Magento and are going to compare their product pages that are considered as a motivator while purchasing products. (more…)
In the article, we’re going to compare routing in Magento 1 and Magento 2. Actually, there’s an article containing routing description in Magento 1, so in case you’d like to have a closer look at routing in Magento 1, read our blog. (more…)
The closure is considered to be the inner function that has access to the variables of the outer function. Every time when executing the outer function, the instance of the inner function containing new references to variables of the outer function is created. Thanks to closure, the inner function remembers all the variables passed to the inner function. (more…)
Before answering the question mentioned in the title, we should learn the function of every attribute.
“name” is a block identifier in XML layout with the help of which a block can be applied. “name” attribute should be unique within a page. It is appropriate to compare this attribute with “id” for HTML tags. If we do not assign the attribute, it is assigned automatically by the system in the ANONYMOUS_n format (“n” is a sequence element number with unspecified “id” attribute).
First off, in order to use url_rewrites, Magento configuration should be activated. That’s why it is necessary to carry out the following steps:
- From Admin panel go to Stores>Configuration>Web
- Find Search Engine Optimization section
- Select “Yes” for “Use Web Server Rewrites” option
- Save configuration