CreditPigg
WordPress/WooCommerce plugin for managing customer account credits and applying them at checkout.
Plugin folder: credits/
Plugin header name: CreditPig
What It Does
- Adds a credit balance system for WooCommerce customers.
- Lets admins manage credits per customer: Add, Deduct, or Set exact balance.
- Lets admins apply credit changes in bulk by WordPress role.
- Supports optional credit expiry (default, fixed date, or relative duration).
- Shows customer-facing credit balance/history in My Account.
- Adds checkout credit usage logic, including partial coverage behavior.
- Includes admin overview, charting, CSV export, and About/status tooling.
Requirements
- WordPress
- WooCommerce
- PHP environment compatible with your WordPress/WooCommerce stack
Installation
- Copy the
credits/directory intowp-content/plugins/. - In WordPress admin, go to Plugins and activate CreditPig.
- Go to Credits in the admin sidebar to configure and manage balances.
Key Admin Areas
- Manage Customer: search users, view balance/history/expiry, apply credit operations.
- Apply by Role: perform role-wide add/deduct/set operations with required notes.
- Overview: total available credit, trend graph, balance table, CSV export.
- Settings: labels, endpoint, default expiry, category restrictions, etc.
- About: plugin/version diagnostics and payment method status.
Checkout Behavior (High Level)
- Customers with sufficient credit can complete payment with credits.
- Partial credit application is supported when credit is less than order total.
- Store flow can require another payment method for the remaining amount.
- Supports an opt-out control for applying credits on eligible checkouts.
Repository Notes
kit-8a25f6ee2d-web/is gitignored and not committed.- Project root also contains
icon.svgused for dashboard/menu icon work.