Installing Client Group Pricing¶
Upload the files¶
The extension must end up in this folder of your Paymenter installation. The folder name must be exactly ClientGroupPricing.
extensions/Others/ClientGroupPricing/
You can get it there in two ways.
Upload the ZIP in the admin area
- In the admin area, open Extensions, then Available Extensions.
- Switch to the Ready to Install / Upload tab.
- Click Upload Extension, choose the ZIP file and confirm.
Copy the folder by hand
- Unpack the ZIP and copy the
ClientGroupPricingfolder toextensions/Others/ClientGroupPricing/. -
If the extension does not show up in the next step, run these commands in the Paymenter root directory:
composer dump-autoload php artisan optimize:clear
Install and enable¶
- Open Extensions, then Available Extensions, tab Ready to Install / Upload.
- Find Client Group Pricing in the list and click Install. Paymenter opens the extension's settings page.
- Switch on Enabled and save.
Installing and enabling both run the extension's migration, which creates three tables:
| Table | Content |
|---|---|
ext_client_groups |
The groups |
ext_client_group_user |
Which customer is in which group |
ext_group_prices |
The group prices per plan |
Once the extension is enabled, the admin area has a new entry Client Groups in the Extensions navigation group.
First-time setup¶
The extension's settings page has no settings, only a short description. Nothing changes for your customers until you create a group and put customers into it.
- Open Client Groups and click New client group.
- Fill in the group and save. See Configuration for the fields.
- On the group's edit page, add prices on the Plan prices tab and customers on the Customers tab.
Usage describes these steps in detail.
Updating¶
- Upload the new ZIP with Upload Extension as described above. Paymenter replaces the
extensions/Others/ClientGroupPricingfolder and calls the extension's upgrade step, which runs any new migrations. - If you replace the folder by hand instead, disable and re-enable the extension afterwards. Enabling runs any new migrations.
Your groups, plan prices and memberships are kept.
Uninstalling¶
- Open the extension's settings page in the admin area.
- Click Uninstall Extension and confirm.
Warning
Uninstalling drops the three tables. All groups, plan prices and memberships are deleted. Services and invoices are not changed: a service that was sold at a group price keeps that price and is renewed at it.
Disabling the extension keeps the tables and all groups. While it is disabled, new orders are billed at the normal plan price, the shop shows the normal price to everybody, customers are no longer assigned by email domain and the Client Groups entry is gone from the admin area. Existing services keep the price stored on them.