Linux 软件免费装
Banner图

Moksa Points for WooCommerce

开发者 moksa0923
更新时间 2026年8月30日 20:26
PHP版本: 8.2 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

woocommerce points rewards store credit loyalty

下载

1.0.1

详情介绍:

Moksa Points for WooCommerce is the value engine of the Moksa platform: a single, idempotent ledger that is the one source of truth for every customer's points and store-credit balance. Companion plugins (coupons, membership) read the balance through a documented API and never store their own, so value can never drift between plugins. Every balance change is written once through a de-duplicated ledger entry keyed by a stable reference, so a retried checkout, a double-fired hook or a concurrent request can never mint or double-spend value. Redemption and checkout debits are guarded by a per-user lock, and refunds and cancellations proportionally reverse the points and credit they originally granted. Points is modular — enable only what you need from the plugin's own "Moksa Points → Settings" screen. On first install a safe additive core is enabled: the ledger, the "My points" account page with its tier / badges / leaderboard display, purchase and coupon earning, campaigns, and WordPress Ability registration (every ability is capability-checked against manage_woocommerce). Two groups stay off until you turn them on: anything that moves value at checkout (points and store-credit redemption, cashback, gift cards) and anything that opens an outside interface (the external MCP server, outbound webhooks, LINE notifications, the customer REST API). The in-dashboard AI assistant is bundled but does nothing until you configure a provider in WordPress's AI Client. The plugin is HPOS and Block Checkout compatible and, on uninstall, removes only its own moksafopoi_ prefixed data. Earning and spending Display, engagement and admin Abilities, AI and MCP (optional) Every read and value action is registered as a capability-checked WordPress Ability, reachable from the WordPress Abilities API, an in-dashboard AI assistant (WordPress 7.0 AI Client) and an optional self-built MCP server. Ability registration is on out of the box, so an agent working inside your dashboard can read and act on the programme; every ability and REST route checks the current user's manage_woocommerce capability, so it can never do more than the logged-in user could do by hand. The AI assistant stays inert until you configure a provider, and the MCP server is off entirely. Destructive abilities are never exposed to external MCP unless you separately opt in — and when they are, they additionally require an administrator-level capability, an hourly rate limit and an audit log of every call.

安装:

  1. Upload the plugin to /wp-content/plugins/moksa-points-for-woocommerce, or install it from the Plugins screen.
  2. Activate it. WooCommerce must be active.
  3. Open Moksa Points → Settings and switch on the modules you want. A safe earning core is enabled on first install; modules that change checkout (points / store-credit redemption, cashback, gift cards) and modules that open an outside interface (external MCP, outbound webhooks, LINE notifications, the customer REST API) stay off until you enable them.

升级注意事项:

1.0.1 Hardening pass: scripts are enqueued, block and shortcode output is escaped, and transient keys are prefixed. 1.0.0 Initial release.

常见问题:

Does another plugin store the balance?

No. This plugin is the single source of truth for points and store-credit balances. Companion plugins read the balance through a documented API and never keep their own copy.

Can the same order award points twice?

No. Every ledger entry is written once, keyed by a stable reference, so a retried or double-fired event cannot mint or double-spend value. Redemption and checkout debits are additionally guarded by a per-user lock.

What happens to points on a refund or cancellation?

Refunds and cancellations proportionally reverse the points and store credit the order originally granted.

Does it work without the AI features?

Yes. All points, wallet and reward features work on a standard WooCommerce store with no AI configuration. Abilities are registered out of the box (each one capability-checked) so an agent can read the programme, but nothing reaches an AI service until you configure a provider in WordPress's AI Client, and the external MCP server is off entirely.

更新日志:

1.0.1 1.0.0