|
1
|
--- |
|
2
|
sidebar_position: 2 |
|
3
|
sidebar_label: "Manage Customer Groups" |
|
4
|
tags: |
|
5
|
- user guide |
|
6
|
- customer |
|
7
|
products: |
|
8
|
- customer |
|
9
|
--- |
|
10
|
|
|
11
|
import { EllipsisHorizontal, ArrowUpRightOnBox, EllipsisVertical } from "@medusajs/icons" |
|
12
|
|
|
13
|
export const metadata = { |
|
14
|
title: `Manage Customer Groups in Medusa Admin`, |
|
15
|
} |
|
16
|
|
|
17
|
# {metadata.title} |
|
18
|
|
|
19
|
In this guide, you’ll learn how to create and manage customer groups. |
|
20
|
|
|
21
|
## Segment Customers with Customer Groups |
|
22
|
|
|
23
|
A customer group is a way to segment your customers based on certain criteria. You can use customer groups to apply promotions or offer different pricing. |
|
24
|
|
|
25
|
For example, you can create a VIP customer group and offer them a 10% discount on all products. You can also create a wholesale customer group and offer them products at a discounted price for large orders. |
|
26
|
|
|
27
|
### View List of Customer Groups |
|
28
|
|
|
29
|
To view all customer groups, go to the Customers → Customer Groups page. From here, you can see a list, filter, and search through all customer groups. |
|
30
|
|
|
31
|
 |
|
32
|
|
|
33
|
--- |
|
34
|
|
|
35
|
## Create a Customer Group |
|
36
|
|
|
37
|
To create a customer group: |
|
38
|
|
|
39
|
1. Go to the Customers → Customer Groups page. |
|
40
|
2. Click the Create button. |
|
41
|
3. In the form that opens, enter the customer group's name. |
|
42
|
4. Click the Create button. |
|
43
|
|
|
44
|
 |
|
45
|
|
|
46
|
--- |
|
47
|
|
|
48
|
## View Customer Group Details |
|
49
|
|
|
50
|
To view the details of a customer group: |
|
51
|
|
|
52
|
1. Go to the Customers → Customer Groups page. |
|
53
|
2. Click on the group you want to view. |
|
54
|
|
|
55
|
This opens the customer group's details page. |
|
56
|
|
|
57
|
 |
|
58
|
|
|
59
|
--- |
|
60
|
|
|
61
|
## Edit a Customer Group |
|
62
|
|
|
63
|
To edit a customer group: |
|
64
|
|
|
65
|
1. Go to the customer group’s details page. |
|
66
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the first section's header. |
|
67
|
3. Click on Edit in the dropdown. |
|
68
|
4. In the side window that opens, you can edit the customer group's name. |
|
69
|
5. Once you’re done, click on the Save button. |
|
70
|
|
|
71
|
 |
|
72
|
|
|
73
|
--- |
|
74
|
|
|
75
|
## Manage Customers in a Group |
|
76
|
|
|
77
|
A customer group can have multiple customers. You can add or remove customers from a customer group. |
|
78
|
|
|
79
|
### Add Customers to a Group |
|
80
|
|
|
81
|
To add customers to a customer group: |
|
82
|
|
|
83
|
1. Go to the customer group’s details page. |
|
84
|
2. In the Customers section, click the Add button in the section's header. |
|
85
|
3. Check the customers you want to add to the group. |
|
86
|
4. Once you're done, click on the Save button. |
|
87
|
|
|
88
|
 |
|
89
|
|
|
90
|
### Remove a Customer from a Group |
|
91
|
|
|
92
|
To remove customers from a customer group: |
|
93
|
|
|
94
|
1. Go to the customer group’s details page. |
|
95
|
2. In the Customers section, check the customers you want to remove from the group. |
|
96
|
3. Once you're done, either press <Kbd>R</Kbd> or click Remove at the bottom center of the page. |
|
97
|
4. Confirm removing the customers by clicking the Continue button in the pop-up. |
|
98
|
|
|
99
|
 |
|
100
|
|
|
101
|
--- |
|
102
|
|
|
103
|
## Edit Customer Group Metadata |
|
104
|
|
|
105
|
Metadata is custom data that can be associated with the customer group in key-value pairs. This is usually used by developers for custom integrations or to store additional information about the customer group. |
|
106
|
|
|
107
|
To edit the customer group's metadata: |
|
108
|
|
|
109
|
1. Go to the customer group's details page. |
|
110
|
2. Click the <InlineIcon Icon={ArrowUpRightOnBox} alt="arrow" /> icon in the "Metadata" section. |
|
111
|
3. In the side window that opens: |
|
112
|
- Manage the key-value pairs in the table. |
|
113
|
- To add a new row of key-value pairs before or after a row: |
|
114
|
- Hover over the row and click the <InlineIcon Icon={EllipsisVertical} alt="three-dots" /> icon at its end. |
|
115
|
- Choose "Insert row above" or "Insert row below" from the dropdown. |
|
116
|
- To delete a row of key-value pairs: |
|
117
|
- Hover over the row and click the <InlineIcon Icon={EllipsisVertical} alt="three-dots" /> icon at its end. |
|
118
|
- Choose "Delete row" from the dropdown. |
|
119
|
4. Once you're done, click the Save button. |
|
120
|
|
|
121
|
--- |
|
122
|
|
|
123
|
## Delete Customer Group |
|
124
|
|
|
125
|
<Note type="warning"> |
|
126
|
|
|
127
|
Deleting a customer group is irreversible. It doesn't delete the customers in the group. |
|
128
|
|
|
129
|
</Note> |
|
130
|
|
|
131
|
To delete a customer group: |
|
132
|
|
|
133
|
1. Go to the customer group’s details page. |
|
134
|
2. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the first section's header. |
|
135
|
3. Choose Delete from the dropdown. |
|
136
|
4. Confirm deleting the customer group by clicking the Delete button in the pop-up. |