A credit-based digital product download system for WooCommerce. Users can purchase and use credits to download digital files.
Compatible with WooCommerce.
- Admin Panel: Manage users' credit balances.
- Create Credit Products: Add credit-based products (e.g., 100 Credit Pack).
- Restricted Access: Users without sufficient credits cannot download files.
- User Dashboard: Users can view their credit balance in the "My Account" section.
- Download the latest version.
- Go to WordPress Admin > Plugins > Add New > Upload Plugin.
- Select the
custom-download-credits.zipfile and activate the plugin.
cd wp-content/plugins
git clone https://github.com/your-username/woocommerce-credit-system.git- When adding a new product, check βCredit Productβ.
- Enter the credit amount (e.g., 100).
- Edit user credit balances from the Credit Management menu.
- Add credit pack products to the cart and complete the purchase.
- Users can download files using credits by clicking the "Download" button on the product page.
π¦ woocommerce-credit-system
β£ π admin # Admin panel classes
β£ π public # Frontend logic
β£ π includes # Core functionality
β£ π assets # CSS/JS/Images
β£ π README.md
β π LICENSE
- PHP 7.4+
- WordPress 5.6+
- WooCommerce 5.0+
// Custom credit calculation filter
add_filter('cdc_credit_calculation', function($credit, $product_id) {
return $credit * 2; // Double the credit value
});- Fork the repository.
- Create a new branch:
git checkout -b feature/new-feature
- Commit your changes.
- Open a Pull Request.
For bug reports or feature requests, please open an issue on GitHub.
Thank you for using the WooCommerce Credit System! If you like it, consider giving it a β on GitHub!




