Discount Rule Evaluator
Applies coupon or automatic discount rules and returns explainable results.
Open FunctionReusable pure PHP functions for everyday application and LAMP stack work.
Applies coupon or automatic discount rules and returns explainable results.
Open FunctionDetermines the tax region from shipping/billing address and configured rules.
Open FunctionChooses eligible shipping rates based on cart weight, value, destination, and carrier rules.
Open FunctionPlans stock reservations for checkout without immediately reducing inventory incorrectly.
Open FunctionBuilds invoice-ready line items from cart/order records.
Open FunctionChecks order status, payment status, age, and item rules before allowing refund.
Open FunctionSummarizes order count, revenue, refunds, average order, and first/last purchase.
Open FunctionFinds carts inactive beyond a threshold and classifies recovery eligibility.
Open FunctionStores one-time admin flash messages by type and scope.
Open FunctionValidates selected IDs, action name, CSRF, and permission before bulk admin actions.
Open FunctionBuilds filter, search, pagination, and sort state for admin tables.
Open FunctionBuilds safe form values after validation errors without reusing unsafe raw input.
Open Function