Magento Front End Developer

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

How Many Fallback Steps Are There in Magento 1.x and 2.x?

How Many Fallback Steps Are There in Magento 1.x and 2.x?

In a word, in Magento there are three maximum fallback steps implied by theme hierarchy when developing:

  • Custom theme is a current website theme that is being developed.
  • Default theme is a parent version from which we inherit Custom theme. It can be not only the preselected theme but also the theme that has been already designed.
  • Base theme is the main Magento theme to be inherited from and reassigned by other themes (Custom and Default). One can say it is the part of Magento’s core. It is preferable not to alter files directly in the theme, but create a duplicate in the theme, as when updating Magento, all the changes in the folder “Basic theme” can be rerecorded.

(more…)

The Scope of Variables in JavaScript

The Scope of Variables in JavaScript

Use strict mode
The “use strict” directive changes code into the mode that adheres to the up-to-date standard. It looks like the line “use strict” or ‘use strict’ and is placed at the beginning of the script:

Besides, the directive is used in functions. In such cases, a strict mode can be executed in function scope. The action “use strict” can’t be possibly canceled. It’s not supported by versions IE9 and older.
(more…)

Welcome to BelVG ecommerce blog

While preparing for the exam, you’re provided with the blog section dedicated to Magento front end developer certification. All the articles are written by experienced professionals who have already validated their knowledge, help you get ready. With the help of the articles written in a clear manner, you will be able to create and customize Magento themes including templates, layouts, JavaScript, CSS, images. Moreover, you can demonstrate the ability to implement design-related system configuration and modify the appearance of specific pages. So relying on the experience of developers who have dealt with Magento platform for more than 7 years, you can get outstanding achievements and pass the exam easily.

top