In this tutorial, Today I will explain to how to create a category attribute using data patches in Magento 2. Magento added new features which is data patches after Magento 2.3.x. Previously, Magento 2 uses InstallData and UpgradeData file use add data in core table or custom table. From Magento 2.3 it will be replaced by Data Patch. How to…
How to Set Price Format using JavaScript in Magento 2
In this tutorial, Today I will explain to how to set price format using JavaScript in Magento 2. Generally, when you pass custom price value from phtml file to JS file at that time, You need to display price with currency from JS. You need to follow the below steps to display currency symbol with price from Javascript. You may…
How to Add Image Chooser in Magento 2 Widget
In this tutorial, Today I will explain to how to add image chooser in Magento 2 widget. In previous post, I have described that How to create custom widget in Magento 2. There are many types magento by default provided by Magento_Widget module. But, If you want to use image uploader then, you need to use block type in widget.…
How to Create Custom Widget in Magento 2
In this tutorial, Today I will explain to how to create custom widget in Magento 2. Widget is one of the good feature to add dynamic or static content to store pages and blocks. There are some by defaults widget Magento provided. For ex : CMS Page Link CMS Static Block Catalog Products List It’s also useful when you want…
Magento 2.3 PWA Installation Guide
In this tutorial, Today I will explain to how to setup PWA in Magento 2.3. PWA stands for Progressive Web Application which was originally talked about by Google back in 2015. It uses modern web technologies and design patterns to provide a reliable, fast, and engaging user experience. You may also like this : How to Use Grunt in Magento…
How to Check if Customer Account is Confirmed or not in Magento 2
In this tutorial, Today I will explain to you how to check if customer account is confirmed or not in Magento 2. Sometimes, you need to check programmatically that customer account is confirmed or not. For that you need to inject \Magento\Customer\Api\AccountManagementInterface this class. You may also like this : How to add new customer address by REST API in…
List of Useful Git Commands
In this tutorial, I will list out some useful git commands list. Now a days, GIT is very useful to manage your project in one place. So, I am posting here some importance GIT commands list. Bookmark this blog in your browser 🙂 You may also like this : Magento 2 : Useful Command List How to Create and Extract…
How to Redirect to The Particular Page After Login in Magento 2
In this tutorial, Today I will explain to how to redirect to the particular page after login in Magento 2. In default Magento 2, redirect customer to their dashboard page after customer login. Now, If you want to redirect customer to the particular page after customer login then, you need to follow the below steps for that You may also…
Solved : 404 not Found After Fresh Magento 2.4.2 Installation
In this tutorial, Today I will explain to how to solve issue of 404 not found after fresh Magento 2.4.2 installation. From Magento 2.4.2, Magento modified docroot to improve security and because of that, now if you execute base url then, you will see that it’s return 404 not found error. To solve this issue, you need to create virtual…
How to Disable Two Factor Authentication in Magento 2
In this tutorial, Today I will explain to how to disable two factor authentication in Magento 2. After Magento 2.4.x, Magento by default enable two factor authentication. Admin users must first configure their 2FA before logging into the Admin through either the UI or a web API. This step of authentication makes it harder for malicious users to log in…