Stock & Capacity Manager changelog¶
1.0.0¶
Initial release.
Added¶
- Per-product capacity configuration with enable/disable.
- Maximum stock per product and an automatically calculated usage count derived from the product's services.
- Capacity counting rules: pending, active and suspended services occupy a slot; cancelled services do not.
- Remaining stock calculation that never goes negative, plus quantity awareness so multi-unit orders and products split over several cart lines are checked against the remaining capacity as a whole.
- Server-side checkout blocking at two points: when a product is added to the cart (
CartItem\Creating) and authoritatively when the order is created (Order\Creating). A blocked checkout never writes an order. - Optional storefront display of the remaining quantity ("Only 3 remaining") on the product page.
- Optional removal of sold-out products from the product listing.
- Configurable low-stock threshold, surfaced as a colour-coded column in the admin list.
- Admin management resource (create, edit, enable/disable, delete) with a live used/remaining summary on the edit page.
- Automatic migration of the extension's own table (
ext_stock_capacity) on install/enable/update, and rollback on uninstall. - Automated test suite covering configuration, usage and remaining calculation, service status handling, quantity handling, low-stock detection, storefront display, storefront listing visibility, sold-out blocking and both checkout guards, including the real Livewire storefront component.