Log in
Model

CustomerGroupRetriever

Magento\Sales\Model\CustomerGroupRetriever

What it does

This class retrieves the customer group ID for the current quote in the admin area.

It checks if a quote exists in the admin session and returns its customer group ID, otherwise returns the default 'Not Logged In' group ID.

Developers use this when they need to determine which customer group pricing or rules apply during admin order creation.

Public Methods

  • getCustomerGroupId()