How to Get all Translation Labels from PHP and JS files of Magento 2 Extension

Write generator labes function with xml files File directory: xampp/htdocs/translation/translatelabel.php

The steps I mention above is the shortest process for you to Get all Translation Labels from PHP and JS files of Magento 2 Extension. With this guide, you can manage the Translation Labels from PHP and JS files of Magento 2 Extension easily. Every […]

Read More

How to Disable Requirejs Cache in Magento 2

Hello everyone. As you know, Magento 2 use the requirejs to load the JS module for the website page. So It will inscrease the loading speed of the page. If the js has been loaded from server, in the next time, it will be loaded from cache of the browser. Therefore, the speed will inscrease. […]

Read More

How to Remove Block Depending on a Config Setting

In this topic we will show you How to Remove Block Depending on a Config Setting through 2 steps: Step 1: Create your events.xml Step 2: Create RemoveBlock.php Step 1: Create your events.xml Create your events.xml in events.xml file in app\code\[Name_Space]\[Your_Module]\etc

Step 2: Create RemoveBlock.php Create RemoveBlock.php in app\code\[Name_Space]\[Your_Module]\Model\Observer

The steps I mention […]

Read More

How to Override Magento JS Core in Magento 2

In this topic we will show you How to Override Magento JS Core in Magento 2 through 2 steps: Hello everyone. Sometimes, you want to change the Magento JS core. But you can not change directly in Magento source code. So you must override the Magento JS. In this blog, I will show you how […]

Read More

Javascript Template in Magento 2

Hello everyone! In Magento 2, sometime there are some HTML code will be repeated so many times. The different is only the data. So, you want to use the best way to make it. In this blog, I will show you how to use the Javascript Template in Magento 2. Step 1: In the .phtml […]

Read More

How to Configure Color Swatches in Magento 2

Configure Color Swatches in Magento 2 Text-Based Swatches Swatches in Layered Navigation It is crucial to give the true attributes of the items by Swatches features such as color, pattern, and texture, because customers only base the senses to make a judgment and decide whether they will buy the product or not in shopping online. […]

Read More

Querying with filtering Indexeddb using library DB.js

Today, we will try to filter in the library db.js First,  we will create the data base magestore_db with table student: 1 We insert some students into data base 2 we can filter with property and value 3 We also can filter with function 4 With filtering with function, you can custom to filter and, 5 […]

Read More

How to use Events in Knockout JS Magento 2? – Magento 2 events

Here are the steps that you will follow in this How to use Events in Knockout JS Magento 2? – Magento 2 events: Add Magento 2 events observer into view file Declare the function select Row in view-model In the previous article, I’ve showed you how to generate a data grid in frontend page using knockout […]

Read More

How to Generate a Data Grid in Frontend Page by Using Knockout Js?

Magento 2 uses KnockoutJS library in frontend. It implements Model View View-Model design pattern which is very useful to build a dynamic UI. In this topic, I’ll guide you how to generate a data grid in frontend of Magento 2 by using KnockoutJS. 1 Create grid view-model 2 Implement _prepareItems() function in grid view-model 3 […]

Read More