In this tutorial, Today I will explain to how to add custom validation rule in Magento 2.In Magento , There are many default validation available. It will be useful to check all validation when submit form. But, now if you want to create custom validation rule based on your requirement then, you need to follow the below steps : You…
Category: Magento 2
Magento 2 tutorial for begineers. Learn Magento 2 for begineers. Best Magento 2 Blog for Learning. Magento 2 module tutorial.
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.…
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…
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…
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…
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…