https://github.com/ahmetsezginn/credit-base-system-wp-plugin
WooCommerce Credit System is a plugin that enables a credit-based digital product download system for WooCommerce. Users can purchase credits and use them to download digital files. Admins can manage user credit balances and create credit-pack products. π
https://github.com/ahmetsezginn/credit-base-system-wp-plugin
credit-based credit-based-system credit-system digital-downloads e-commerce php plugin woocommerce woocommerce-plugin wordpress wordpress-plugin wp-plugin
Last synced: over 1 year ago
JSON representation
WooCommerce Credit System is a plugin that enables a credit-based digital product download system for WooCommerce. Users can purchase credits and use them to download digital files. Admins can manage user credit balances and create credit-pack products. π
- Host: GitHub
- URL: https://github.com/ahmetsezginn/credit-base-system-wp-plugin
- Owner: ahmetsezginn
- License: mit
- Created: 2025-02-25T20:21:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T20:47:43.000Z (over 1 year ago)
- Last Synced: 2025-02-25T21:27:32.261Z (over 1 year ago)
- Topics: credit-based, credit-based-system, credit-system, digital-downloads, e-commerce, php, plugin, woocommerce, woocommerce-plugin, wordpress, wordpress-plugin, wp-plugin
- Language: PHP
- Homepage: https://justpables.com
- Size: 174 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WooCommerce Credit System
A credit-based digital product download system for WooCommerce. Users can purchase and use credits to download digital files.
## π License
Compatible with WooCommerce.
---
## π Features
### πΉ Loan Management Panel
- **Admin Panel**: Manage users' credit balances.

### πΉ Credit Products
- **Create Credit Products**: Add credit-based products (e.g., 100 Credit Pack).

### πΉ File Download Control
- **Restricted Access**: Users without sufficient credits cannot download files.

### πΉ My Account Integration
- **User Dashboard**: Users can view their credit balance in the "My Account" section.

---
## π οΈ Installation
### 1. Upload to WordPress
1. Download the latest version.
2. Go to **WordPress Admin > Plugins > Add New > Upload Plugin**.
3. Select the `custom-download-credits.zip` file and activate the plugin.
### 2. Manual Installation
```bash
cd wp-content/plugins
git clone https://github.com/your-username/woocommerce-credit-system.git
```
---
## π Usage
### A. Admin Panel
#### πΉ Creating Credit Products
- When adding a new product, check **βCredit Productβ**.
- Enter the credit amount (e.g., 100).
#### πΉ Managing User Credits
- Edit user credit balances from the **Credit Management** menu.

### B. User Side
#### πΉ Purchasing Credits
- Add credit pack products to the cart and complete the purchase.
#### πΉ Downloading Files
- Users can download files using credits by clicking the **"Download"** button on the product page.
---
## π» For Developers
### π Project Structure
```
π¦ woocommerce-credit-system
β£ π admin # Admin panel classes
β£ π public # Frontend logic
β£ π includes # Core functionality
β£ π assets # CSS/JS/Images
β£ π README.md
β π LICENSE
```
### π§ Dependencies
- PHP **7.4+**
- WordPress **5.6+**
- WooCommerce **5.0+**
### π Hooks & Filters
```php
// Custom credit calculation filter
add_filter('cdc_credit_calculation', function($credit, $product_id) {
return $credit * 2; // Double the credit value
});
```
---
## π€ Contribution
1. **Fork** the repository.
2. **Create a new branch**:
```bash
git checkout -b feature/new-feature
```
3. **Commit** your changes.
4. **Open a Pull Request**.
---
## β Support
For bug reports or feature requests, please open an **issue** on GitHub.
---
## β Thank You!
Thank you for using the WooCommerce Credit System! If you like it, consider giving it a β on GitHub!