Installing Stock & Capacity Manager¶
Upload the files¶
The extension must end up in this folder of your Paymenter installation. The folder name must be exactly StockCapacityManager.
extensions/Others/StockCapacityManager/
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
StockCapacityManagerfolder toextensions/Others/StockCapacityManager/. -
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 Stock & Capacity Manager (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, which creates one table: ext_stock_capacity.
Once the extension is enabled, the admin area has a new entry Stock & Capacity in the Extensions navigation group.
First-time setup¶
The extension has no global settings, and nothing is limited until you create a stock configuration for a product:
- Open Stock & Capacity in the Extensions navigation group.
- Create a stock configuration, choose the Product and enter a Maximum stock.
- Save.
Services that already exist for the product count as used from that moment. See Configuration for all fields.
Updating¶
- Upload the new ZIP with Upload Extension as described above. Paymenter replaces the
extensions/Others/StockCapacityManagerfolder 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.
Existing stock configurations are kept.
Uninstalling¶
- Open the extension's settings page in the admin area.
- Click Uninstall Extension and confirm.
Warning
Uninstalling drops the ext_stock_capacity table. Every stock configuration is deleted. Products, services, orders and invoices are not changed.
To keep the configurations, disable the extension instead of uninstalling it. Disabling keeps the table. While the extension is disabled it checks nothing, shows no notice, hides no product, and the Stock & Capacity entry is not in the admin navigation.