How to set firstname and lastname with minimum two character in Magento 2?

Magento 2 First name and Last name is default customer entity available in Native Magento. Once you install Magento 2, Customer first name and last name attribute available.

Firstname and Lastname attribute available with Customer and Customer_address entity type.

customer entity type contains attribute used for registration page and customer form related entity.

customer_address entity types used for billing and shipping form of customer. Continue reading “How to set firstname and lastname with minimum two character in Magento 2?”

Get Customer Extension Attribute value Magento 2.

Magento 2, Customer module have comes with extension attributes, getVertexCustomerCode( ) and getIsSubscribed( ).

If you have created your customer extension attributes and you want to fetch customer extension attributes value using Customer Object,  You need to first get Customer Object and based on Customer object you can find your custom extension attributes value. Continue reading “Get Customer Extension Attribute value Magento 2.”

HOW TO CREATE A TAB IN Admin CUSTOMER EDIT PAGE IN MAGENTO 2?

In Magento 2, You can add a new custom tab on the Customer Edit page.

If you want to add a new tab in the Customer edit section for your custom requirement, You can add easily a customer tab in the Customer edit section.

You need to create a simple module to add an extra tab in the customer edit section.

Refer to the code snippet for adding an extra tab,
I have taken Rbj as Packagename and CustomerTab as modulename for simplicity. Continue reading “HOW TO CREATE A TAB IN Admin CUSTOMER EDIT PAGE IN MAGENTO 2?”