Home » Magento, Magento 24 January 2017

Magento 2: Get Customer Groups

This article shows how to get all customer groups name and id in Magento 2.

Here is the code that you need to write in your Block class.

The output array while calling getCustomerGroups() method will be something like this:

Hope this helps. Thanks.

php magento mukesh chapagain

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed