How to Add Customer Group Field in Magento 2 Admin UI Component Form

The post offers a solution to add customer group field in Magento 2 admin UI component form.

Use the below solution when you want to implement any functionalities based on the Magento 2 customer groups.

For instance, the Magento 2 store admin wants to offer different pricing strategies for wholesalers only and cash on delivery option should only be enabled for VIP customer groups.

Or “instant delivery” is to be offered only to higher customer groups. Or, restrict a payment method for not logged in customer group.

To configure such rules in the admin UI, you will need to add the customer group field which can be done using the below solution:

Method to Add Customer Group Field in Magento 2 Admin UI Component Form:

That’s it.

Any doubts? Do mention them in the Comments section below. I’d be happy to help you out.

Also, do share the solution with the Magento Community via social media.

Thank you.

5
(based on 8 Reviews)
How to Add Customer Group Field in Magento 2 Admin UI Component Form

Milan Vaghela

Milan is a Magento Developer at Meetanshi. Apart from work, he plays cricket passionately. He loves reading books in his free time.

Leave a Reply

Your email address will not be published. Required fields are marked *