Linux 软件免费装
Banner图

Moksa Points for WooCommerce

开发者 moksa0923
更新时间 2026年12月1日 18:55
PHP版本: 8.2 及以上
WordPress版本: 7.2
版权: GPLv3 or later
版权网址: 版权信息

标签

woocommerce points rewards store credit loyalty

下载

1.1.2 1.3.0 1.1.1 1.0.6 1.1.0 1.1.3 1.2.0 1.2.1 1.0.3 1.0.2 1.0.4 1.0.5 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 only the core is enabled: the ledger, points on purchases, using points at checkout, taking points back on refunds, the "My points" account page, the points menu and staff adjustments. Everything else stays off until you turn it on, including tiers, badges, the leaderboard, campaigns, store credit, cashback, gift cards, WordPress Ability registration and anything that opens an outside interface (the external MCP server, outbound webhooks, LINE notifications, the customer REST API). Sites that already run the plugin keep their own switches. 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 the optional Moksa MCP endpoint shared by every Moksa plugin (/wp-json/moksa/v1/mcp; the older /wp-json/moksafopoi/v1/mcp still works and lists points tools only). Once you switch Ability registration on, 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. Over MCP, a change-making tool (add / deduct points, redeem, expire …) is offered only after you tick that tool in the settings; none are ticked by default, and changing settings is never offered. A ticked tool runs in two steps: the call returns a summary and a one-time token, and the change is carried out only when the AI tool sends that token back (valid for 10 minutes, usable once). Each step re-checks an administrator-level capability, changes are capped per account per hour, and every call is logged with a fingerprint of its arguments, never their content. Create the application password for AI tools on a dedicated account, and note that an AI tool set to approve tool calls automatically can confirm a ticked change by itself.

安装:

  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.3.0 A shorter admin menu, a first settings tab with the everyday switches, and the YITH import inside the points menu. Your settings and switches stay as they are. 1.2.2 Clearer settings descriptions, and saving still works when the settings REST route is blocked. Your settings stay as they are. 1.2.1 Copy settings from YITH Points and Rewards, and an optional minimum order for using points. Nothing changes until you use them. 1.2.0 New settings pages: save only what changed, search, section list, row lists for tables. Your settings stay as they are. 1.1.1 Adds a birthday field, tier and badge pictures, a completed profile bonus and a referral sign-up reward. All are off until you switch them on. 1.1.0 Import from YITH Points and Rewards, one-off tier bonuses, and a fuller store system API. Webhooks now need a signing secret and MCP change tools must be ticked again. If you update from 1.0.4 or older, read the FAQ first. 1.0.6 Purchase points now follow the amount actually paid (points or store credit used at checkout are no longer counted), and deductions can no longer take a balance below zero. Past orders are not changed; see the FAQ. 1.0.5 Moves the redemption catalog to a post type (copied and verified automatically on update) and fixes ledger compaction, transfer refunds and the CSV export. Back up before updating, as with any update that moves data. 1.0.4 Fixes overselling of limited rewards under concurrent redemptions, refunded redemptions counting toward per-customer limits, and coupon rewards with the WordPress.org coupon plugin. Update recommended. 1.0.3 Security fix: prevents concurrent point spends from overdrawing a customer's balance. Update recommended. 1.0.2 Restores the missing block-editor script for the points blocks, plus small fixes to the AI assistant button and a wider settings layout. 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, and give back the same share of the points spent on it at checkout.

I updated from a version older than 1.0.5 and my redemption rewards are missing.

Versions 1.0.5 and 1.0.6 moved the redemption catalog out of an old database table into WordPress's own storage. From 1.1.0 that one-time move is no longer included. If you update straight from 1.0.4 or older, install 1.0.6 first (from the plugin's "Advanced View" page on WordPress.org), open any admin page once so the catalog is moved, then update to the latest version. The old table itself is never deleted, so nothing is lost.

Can I remove the old database tables?

Versions before 1.0.5 created the tables {prefix}moksafopoi_rewards and {prefix}moksafopoi_rules. They are no longer used and are not removed automatically, not even on uninstall. Once your redemption catalog shows correctly, you can delete both tables with your database tool (for example phpMyAdmin). Take a backup first.

Did older versions award too many points on orders paid partly with points?

Yes, up to 1.0.5. When a customer used points or store credit at checkout, the purchase points were calculated on the amount before that discount. 1.0.6 fixes this for new orders and does not change past balances automatically, because customers may already have spent those points. To review past orders, look for orders with a "Points redemption" or "Store credit redemption" line: the extra points on each are roughly that line's amount times your earning rate. You can correct individual balances with the bulk or single-member adjustment in the admin.

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 only after you switch them on (each one capability-checked), and nothing reaches an AI service until you configure a provider in WordPress's AI Client, and the external MCP server is off entirely.

Can points only be used above a certain order amount?

Yes. Set "Minimum order" on the Redeem tab (0, the default, means no minimum). The amount compared is the cart's product subtotal including tax, before coupons and before points; shipping and fees do not count. It is set in the shop's base currency, and a cart shown in another currency is converted before comparing. Below it the cart and checkout show how much more is needed, and points already chosen are taken off.

Can I bring my settings over from another points plugin?

When YITH WooCommerce Points and Rewards settings are stored on the site (the plugin can be active or not), Moksa Points > Import from YITH lists its settings next to the matching settings here. Tick the ones to copy: the previous value of each copied setting is saved, and one button puts those back without touching anything else. The other plugin's settings are only read, never changed. Settings with no equivalent here, or with a value this plugin does not allow, are listed with a note and not copied.

更新日志:

1.3.0 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0