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 : Create a Customer Attribute using Data Patches

In this tutorial, Today I will explain to how to create a customer attribute using data patches in Magento 2. From Magento 2.3.x, Magento brings new features which is  data patches. The Data Patch is class that contains data notification instruction. Previously, Magento 2 uses InstallData and UpgradeData file use add data in core table or custom table. From Magento…

Continue Reading