It’s no secret, that the world of commerce is advancing at a crazy pace. The business of selling has become a real science, why? Because it is no longer about people buying their stuff only in a brick-and-mortar store. The number of sales channels has increased significantly, or I would say enormously. Online stores, social media, brick-and-mortar, you name it, but this is only a small part of the picture. (more…)
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.
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.
While trying to get the question answered, you can refer to the official version consisting of the following:
- Choose a decent web host
- Host assets separately
- Compression with GZip
- Minimize Redirects
- Reduce DNS Lookups
CSS is assured to be the stylesheet language used for describing the presentation of a document written in HTML or XML. It is a well-designed mechanism that allows adding style including fonts, colors, spacing, lines, length, width. Besides, CSS describes the way the elements should be rendered. What are the benefits of applying CSS? Content accessibility is improved, more flexibility and control in the specification of presentation characteristics are provided. At the same time, it helps to reduce complexity and repetition in the structural content. On the whole, CSS is a must-have that can be applied for Magento as well. The next 4 ways needed to follow for CSS implementation in Magento 1.9: (more…)
In default Magento 2 (here and after it is considered on the basis of Luma theme) HTML5 standard is applied. <!DOCTYPE html> tag is indicative of standard version (“html” value defines that HTML5 is used, but HTML4 is backward compatible). In Magento 2 the following features that have been appeared in HTML5 are used.