Magento

Magento 2: How To Create a Theme (Pt.1)

Magento 2: How To Create a Theme (Pt.1)

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…)

Product Page Solutions in Magento That Prominent Brands Use

Product Page Solutions in Magento That Prominent Brands Use

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…)

How Do JavaScript Closures Work in Magento 2? (Magento Developer Certification)

How Do JavaScript Closures Work in Magento 2? (Magento Developer Certification)

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…)

What Is The Difference Between The “name” and “as” Attributes For Blocks in Magento?

What Is The Difference Between The “name” and “as” Attributes For Blocks in Magento?

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).
(more…)

top