malsubrata/woo-wallet 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

malsubrata/woo-wallet

最新稳定版本:v1.6.4

Composer 安装命令:

composer require malsubrata/woo-wallet

包简介

A powerful, extendable WooCommerce wallet system which support payment, partial payment, cashback reward program as well as refund for your WooCommerce store.

README 文档

README

TeraWallet is the leading wallet system for WooCommerce, providing a seamless digital currency experience for WordPress sites. It allows customers to store funds, earn rewards through various site activities, and use their balance for fast, secure checkouts.

📚 Documentation

🚀 Key Features

  • Digital Ledger: Secure transaction history for every user.
  • Flexible Top-ups: Customers can add funds via any WooCommerce gateway.
  • Partial Payments: Use wallet balance combined with other payment methods.
  • Cashback Engine: Rewards based on Cart, Product, or Category rules.
  • Incentivized Actions: Earn balance for Signups, Reviews, Referrals, and Daily Visits.
  • Peer-to-Peer Transfers: Users can send balance to other registered customers.
  • Marketplace Ready: Full compatibility with Dokan, WCFM, and WCMarketplace.

🛠 Developer Section

Core Logic & Hooks

The system uses a strict database-first approach with MySQL-level locking to ensure transaction integrity.

  • Filters:
    • woo_wallet_current_balance: Modify balance display.
    • woo_wallet_payment_is_available: Programmatically toggle the wallet gateway.
    • woo_wallet_cashback_amount: Adjust calculated rewards.
  • Actions:
    • woo_wallet_transaction_recorded: Fires after any ledger update.
    • woo_wallet_payment_processed: Fires after a successful wallet purchase.
    • woo_wallet_admin_adjust_balance: Fires when admins manually edit balance.

REST API (v3)

TeraWallet extends the WooCommerce REST API under the wc/v3/wallet namespace.

  • GET /balance?email={email}: Retrieve user balance.
  • GET /?email={email}: Retrieve transaction list.
  • POST /: Create credit/debit transactions (Admin only).

📂 File Structure

  • includes/class-woo-wallet-wallet.php: Core ledger and balance logic.
  • includes/class-woo-wallet-frontend.php: Shortcodes and checkout integration.
  • includes/actions/: Logic for earning balance via site activities.
  • templates/: UI components (Overridable via theme).

📄 License

This project is licensed under the terms found in the LICENSE file.

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 85
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 84
  • Watchers: 7
  • Forks: 42
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2019-02-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固