Installing Cancellation Reasons¶
Upload the files¶
The extension must end up in this folder of your Paymenter installation. The folder name must be exactly CancellationReasons.
extensions/Others/CancellationReasons/
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
CancellationReasonsfolder toextensions/Others/CancellationReasons/. -
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 Cancellation Reasons (Jube Hosting) 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. It creates two tables and fills the first one with seven default reasons:
| Table | Content |
|---|---|
ext_cancellation_reasons |
The reasons a customer can choose from |
ext_cancellation_responses |
One row per cancellation submitted through the form |
Once the extension is enabled:
- the customer cancellation form shows the reason list instead of the free-text field,
- the admin navigation group Extensions has three new entries: Cancellation Reasons, Cancellation Feedback and Cancellation Statistics.
First-time setup¶
The extension works right after enabling, with the seven default reasons. To change the list, open Cancellation Reasons in the Extensions navigation group. See Configuration.
Updating¶
- Upload the new ZIP with Upload Extension as described above. Paymenter replaces the
extensions/Others/CancellationReasonsfolder 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 reasons and all stored responses are kept. The default reasons are not inserted again.
Disabling¶
Switch off Enabled on the extension's settings page and save. Customers get Paymenter's own cancellation form with the free-text reason again, and the three admin entries disappear. Both tables and their content stay in the database. Cancellations made while the extension is disabled are not recorded as responses.
Uninstalling¶
- Open the extension's settings page under Extensions.
- Click Uninstall Extension and confirm.
Warning
Uninstalling drops both tables, ext_cancellation_reasons and ext_cancellation_responses. Your reason list, every stored response and every comment are deleted. Disable the extension instead if you want to keep the data.
Paymenter's own cancellation records are not touched by uninstalling. They keep the reason text that was chosen.