Magento 2: Get Customer Groups
This article shows how to get all customer groups name and id in Magento 2. I will be showing an example in a Block class. You can write the code in other class (Helper/Model) as well. Both ways (Dependency Injection & Object Manager way) are shown below. Using Dependency Injection (DI) Here is the code … Read more