HOW TO GET CURRENT CUSTOMER GROUP ID IN MAGENTO 2

 In Magento blog

In this blog, we are going to talk about how to get a current customer group id in Magento 2.

The current customer group ID has several developer requirements. If a customer is logged in then how to know which group he belongs to we have created this blog.

see this code:

 

Call phtml file:

 

Using Object Manager :

I hope you have understood this blog. If you have any problems then tell me below comment section

 

Thank You!!..

 

Leave a Comment

0