Skip to content

ahmetsezginn/Credit-Base-System-Wp-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

πŸ”Ή Credit Products

  • Create Credit Products: Add credit-based products (e.g., 100 Credit Pack).

Credit Product Settings

πŸ”Ή File Download Control

  • Restricted Access: Users without sufficient credits cannot download files.

Insufficient Credits

πŸ”Ή My Account Integration

  • User Dashboard: Users can view their credit balance in the "My Account" section.

My Credits


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

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

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

// 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:
    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!

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors