BuyerGroup
Table of Contents
Constants
- BUYER_GROUP_NAME = 'CRM_SHOP_BUYER'
Methods
- getDefaultGroups() : array<string|int, mixed>
- Returns array of default buyer group ids.
- getPublicList() : array<string|int, mixed>
- Returns buyer groups list.
- getSystemGroupId() : string
- Returns default buyer group id.
- prepareGroupIds() : array<string|int, mixed>
- Appends buyer groups to existing system groups and returns new array of group ids.
Constants
BUYER_GROUP_NAME
public
mixed
BUYER_GROUP_NAME
= 'CRM_SHOP_BUYER'
Methods
getDefaultGroups()
Returns array of default buyer group ids.
public
static getDefaultGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>getPublicList()
Returns buyer groups list.
public
static getPublicList() : array<string|int, mixed>
Return values
array<string|int, mixed>getSystemGroupId()
Returns default buyer group id.
public
static getSystemGroupId() : string
Return values
stringprepareGroupIds()
Appends buyer groups to existing system groups and returns new array of group ids.
public
static prepareGroupIds(array<string|int, mixed> $existingGroupIds, array<string|int, mixed> $newGroupIds) : array<string|int, mixed>
Mainly used for discount group lists.
Parameters
- $existingGroupIds : array<string|int, mixed>
- $newGroupIds : array<string|int, mixed>