How to add custom Javascript in head in Magento 2
To add a custom Javascript file in head in Magento 2, use the following example: Continue Reading
To add a custom Javascript file in head in Magento 2, use the following example: Continue Reading
While overriding block via preference, Magento 2 can show an error when you add a core registry in a construct method. Continue Reading
Youк popup window can be based on the following example: Continue Reading
The following Magento 2 tutorial will help you upgrade script for a new version of your extension by adding new tables and columns to a database. Continue Reading
In Magento 2, you can use the following code to redirect customers to another URL with the help of controller: Continue Reading
There are at least two use cases in this situation. In Magento 2 you can custom mini-libraries with such short popular global functions as rm_customer_logged_in(): Continue Reading
In Magento 2 there are several ways of showing and hiding blocks conditionally. If its visibility depends on a configuration settings value, use the
Unfortunately, Magento 2 offers a more complicated solution for checking whether you are in the admin panel.
To include the module name in Magento 2, you should use the following code: Continue Reading
To get access to working directories in Magento 2, you can declare the class in __constract: Continue Reading