Configuring Client Group Pricing¶
The extension's own settings page shows a description only. Everything is configured per group under Client Groups in the Extensions navigation group of the admin area.

Group fields¶
| Setting | Type | Default | What it does |
|---|---|---|---|
| Name | Text, required, up to 100 characters | empty | The name of the group in the admin area. |
| Slug | Text, up to 100 characters, must be unique | derived from the name | An internal identifier. If you leave it empty, it is built from the name. When a new group's slug is already taken, a number is appended (resellers-2). |
| Description | Text, up to 1000 characters | empty | A note for yourself. It is not shown to customers. |
| Discount on every plan | Number from 0 to 100, in percent | empty (no discount) | Taken off the normal price of every plan the group has no own price for. A price on the Plan prices tab wins over this discount. |
| Automatic assignment by email domain | Text, up to 190 characters | empty (manual only) | Customers whose email address uses this domain are added to the group when their account is saved. See Automatic assignment. |
| Active | Switch | on | An inactive group does not change any price and does not assign customers. Its members and plan prices are kept. |
Notes on the email domain¶
- Enter the bare domain, for example
acme.example. If you enter a full address such assales@acme.example, the part after the last@is used. - The comparison ignores upper and lower case and surrounding spaces.
- The domain must match exactly.
acme.exampledoes not matchmail.acme.example. - One domain per group. Several groups may use the same domain; a matching customer is added to all of them.
Plan prices¶
The Plan prices tab on a group's edit page holds the group's own price per plan. Click Add plan price to create one.
| Setting | Type | Default | What it does |
|---|---|---|---|
| Plan | Selection, required | none | The plan the price is for. Each entry shows the product name, the plan name and the billing cycle. Plans that already have a price in this group are not listed, so a group has at most one price per plan. |
| Group price | Number from 0 to 99999999, required | none | Replaces the normal plan price for customers in this group. Stored with two decimals. |
Warning
A group price is one number without a currency. It is used as it is in whatever currency the customer orders in. If you sell the same plan in several currencies, use Discount on every plan instead, or the same number is charged in every currency.
Warning
A group price is not limited to values below the normal price. If you enter a price above the normal plan price, the members of the group pay more than other customers.
A group price is removed automatically when its plan is deleted in Paymenter.
How the price is chosen¶
For one customer and one plan, the extension works out a price for every active group the customer is in:
- the group's price for that plan from the Plan prices tab,
- otherwise the normal plan price minus the group's Discount on every plan,
- otherwise the normal plan price.
If the customer is in several active groups, the lowest of these prices is used. A customer in no active group pays the normal plan price.
Further rules:
- The normal plan price is the price of the plan in the currency of the order.
- If the plan has no price in that currency, the extension changes nothing.
- Plans of the type free are never changed.
- Only the plan price is replaced or discounted. Prices of config options and setup fees stay as Paymenter calculated them. A 20 % group discount therefore lowers the plan part by 20 %, not the options.
- The result is never below 0.
Example¶
A plan costs 10.00.
| Customer is in | Price |
|---|---|
| no group | 10.00 |
| a group with 20 % discount | 8.00 |
| a group with 20 % discount and a plan price of 9.00 | 9.00 |
| a group with 10 % discount and a group with 40 % discount | 6.00 |