Skip to content

Installing Purchase Requirements

Upload the files

The extension must end up in this folder of your Paymenter installation. The folder name must be exactly PurchaseRequirements.

extensions/Others/PurchaseRequirements/

You can get it there in two ways.

Upload the ZIP in the admin area

  1. In the admin area, open Extensions, then Available Extensions.
  2. Switch to the Ready to Install / Upload tab.
  3. Click Upload Extension, choose the ZIP file and confirm.

Copy the folder by hand

  1. Unpack the ZIP and copy the PurchaseRequirements folder to extensions/Others/PurchaseRequirements/.
  2. 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

  1. Open Extensions, then Available Extensions, tab Ready to Install / Upload.
  2. Find Purchase Requirements (Jube Hosting) in the list and click Install. Paymenter opens the extension's settings page.
  3. Switch on Enabled and save.

Installing and enabling both run the extension's migration, which creates one table: ext_purchase_requirements.

Once the extension is enabled:

  • the admin area has a new entry Purchase Requirements in the Extensions navigation group,
  • the cart check and the order check are active.

First-time setup

A fresh installation has no requirements, so nothing is blocked yet. Create your first requirement under Purchase Requirements. See Usage for the steps and Configuration for the fields.

The extension has no settings of its own. Its settings page only shows an information block.

Updating

  1. Upload the new ZIP with Upload Extension as described above. Paymenter replaces the extensions/Others/PurchaseRequirements folder and calls the extension's upgrade step, which runs any new migrations.
  2. If you replace the folder by hand instead, disable and re-enable the extension afterwards. Enabling runs any new migrations.

Existing requirements are kept.

Uninstalling

  1. Open the extension's settings page in the admin area.
  2. Click Uninstall Extension and confirm.

Warning

Uninstalling drops the ext_purchase_requirements table. Every requirement you configured is deleted. Orders and services that already exist are not changed.

To keep your requirements, disable the extension instead of uninstalling it. Disabling keeps the table. While the extension is disabled, no checks run, every product can be bought as if the extension were not installed, and the Purchase Requirements entry disappears from the admin navigation.