An open API service indexing awesome lists of open source software.

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. πŸš€

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.

![Admin Panel](images/admin-panel.png)

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

![Credit Product Settings](images/credit-product-settings.png)

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

![Insufficient Credits](images/insufficient-credits.png)

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

![My Credits](images/my-credits.png)

---

## πŸ› οΈ 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.

![Credit Management](images/credit-management.png)

### 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!