Client Group Pricing changelog¶
1.0.0¶
Initial release.
Added¶
- Customer groups with name, slug, description, blanket discount percentage and an active flag (
ext_client_groups). - Membership table with a unique group/customer pair (
ext_client_group_user). - Per-plan group prices with a unique group/plan pair (
ext_group_prices). PriceResolverservice returning the effective price for a customer and plan in a given currency, with plan price > group discount > normal price precedence and the lowest price winning across several groups.- Billing integration: an
eloquent.creatinghook onServicewrites the group price into the recurring service price, and a listener onApp\Events\InvoiceItem\Creatingadjusts the plan part of every invoice line, including the first invoice created by the cart checkout. - Automatic membership by email domain, triggered on every save of a customer and idempotent.
- Storefront integration: view composers for the product page and category listing rewrite the loaded price models in memory so group members see their own price in any theme.
- Admin resource Extensions → Client Groups with create, edit, delete, a Customers relation manager (attach/detach) and a Plan prices relation manager.
- Automatic migration of the extension's own tables on install/enable/update and rollback on uninstall.
- Automated test suite covering per-plan prices, discounts, customers without a group, inactive groups, renewal invoices, price precedence, currency fallbacks, automatic assignment by email domain, and the storefront prices on the product page.