| 开发者 | moksa0923 |
|---|---|
| 更新时间 | 2026年12月1日 18:55 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
moksafopoi_ prefixed data.
Earning and spending
/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.
/wp-content/plugins/moksa-points-for-woocommerce, or install it from the Plugins screen.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.
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.
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.
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.
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.
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.
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.
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.
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.
/wp-json/moksa/v1/mcp); the older /wp-json/moksafopoi/v1/mcp keeps working and lists points tools only.moksa_points field in the WooCommerce customer API.