Skip to content

Configuring Stock & Capacity Manager

The extension has no global settings. Its settings page only shows an information block, which has no effect.

Everything is configured per product in the admin area under Stock & Capacity in the Extensions navigation group. Each product can have one stock configuration. A product without one behaves like any other Paymenter product.

Fields of a stock configuration

Setting Type Default What it does
Product Select, searchable none The product the configuration applies to. Required. A product that already has a configuration is rejected.
Stock management enabled Toggle On When off, the product can be purchased without limits and none of the other fields has an effect.
Maximum stock Whole number, 1 to 1000000 empty Total number of services that may exist for this product. Required while Stock management enabled is on.
Low stock threshold Whole number, 0 to 1000000 empty When the remaining stock is at or below this value, the Remaining badge in the admin list uses the warning colour. Empty or 0 switches the warning off. It has no effect on the storefront.
Show remaining stock to customers Toggle Off Shows "Only N remaining" on the product page while the product is not sold out.
Hide the product from the storefront when sold out Toggle Off Removes the product from the category listing while it is sold out. When off, the product stays visible but can no longer be purchased.

When you edit an existing configuration, the form also shows Current usage, for example 3 used, 17 remaining of 20.

A product is limited only if it has a configuration, Stock management enabled is on and Maximum stock is filled in.

How capacity is counted

Used capacity is not stored. Each time it is needed, the extension adds up the quantity of all services of the product whose status is not cancelled.

Service status Occupies capacity
Pending Yes
Active Yes
Suspended Yes
Cancelled No
  • Remaining stock is Maximum stock minus used capacity, and never below 0.
  • A product is sold out when the remaining stock is 0.
  • Services that existed before you created the configuration count.
  • A service with a quantity of 3 occupies 3.
  • A slot is free again as soon as the service is cancelled or deleted.
  • If you set Maximum stock below the current usage, the product is sold out until enough services are cancelled. Existing services are not touched.

Paymenter's own stock field

Paymenter products have their own optional stock field. Paymenter checks and reduces it at checkout, and its default theme hides the Add to cart button when it is 0. The extension never reads or writes this field, and Paymenter keeps applying it. If both are set for a product, both limits apply. To let the extension alone decide, leave the product's stock field empty.

Deleting a configuration

Use Delete in the list or on the edit page. The product is then unlimited again. Deleting a product in Paymenter also deletes its stock configuration.