Purchase Requirements changelog¶
1.0.0¶
Initial release.
Added¶
- Per-product requirements with two requirement types:
- Required product: the customer must own an active service of a selected product. Pending, suspended and cancelled services do not count.
- Maximum quantity per customer: limits how many services of a product one customer may hold. Pending and suspended services occupy a slot, cancelled services release it.
- Admin management resource (create, edit, enable/disable, delete) with a resolved condition column, grouped under Extensions.
- Optional custom error message per requirement, with automatic default messages.
- Cart-aware evaluation: the quantity already in the cart counts towards quantity limits, and products spread over several cart lines are summed.
- Server-side enforcement in two places:
- when a product is added to the cart (
CartItem\Creating), and - when the order is created (
Order\Creating), which is the authoritative gate.
- when a product is added to the cart (
- Customer-facing messages are shown through Paymenter's normal checkout notification, and a blocked checkout never writes an order.
- Automatic migration of the extension's own table (
ext_purchase_requirements) on install, enable and update, and rollback on uninstall. - Automated test suite covering required-product rules, quantity limits, service status handling, disabled requirements, custom messages, guest behaviour and both checkout guards.