Magento 2

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…

Continue Reading

Magento 2

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…

Continue Reading

Magento 2

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…

Continue Reading

Magento 2

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…

Continue Reading

Magento 2

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

Continue Reading

Magento 2

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…

Continue Reading

Magento 2

Magento 2 : Create a Category Attribute using Data Patches

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…

Continue Reading

Magento 2

How to set order status column color in UI grid Magento 2

In this tutorial, Today I will explain to how to set order status column color in UI grid in Magento 2. In sales order grid, You can see that there are many order status available. To display different, we can add background color by different order status. Let’s follow the below steps to add color in order status column in…

Continue Reading

Magento 2

How to Compress Sales Invoice PDF Size in Magento 2

In this tutorial, Today I will explain to how to compress sales invoice pdf size in Magento 2. In default Magento, You can see invoice pdf file size is approx 3 to 4 MB size. Now, if you want to compress pdf size and make file size around 5 to 20 KB then, you need to follow this below steps.…

Continue Reading