| 开发者 | jpgleeson |
|---|---|
| 更新时间 | 2026年9月4日 01:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
CHIT-XXXX-XXXX.[chit_redeem] shortcode. Requires login (codes are tied to user accounts so customers can re-download anytime).chit folder to wp-content/plugins/ (or install via the Plugins screen).[chit_redeem] shortcode. You can find it under Pages, rename it, or move it under another menu as you like.On the auto-created Redeem Chit Code page (slug /redeem-chit-code/ by default). The page contains the [chit_redeem] shortcode, which renders the redemption form. You can move the shortcode to any other page or post and link to it from your menus.
By default, yes: codes grant download permission to the customer's WooCommerce account, so the files show up under My Account → Downloads and can be re-downloaded any time. Guests who try to redeem are sent to the login page first. If you'd rather not make people register — say the download is a free extra bundled with a physical product — turn on Allow redemption without an account under Chit → Settings. Guests then enter their email address alongside the code. Chit creates a guest order, the download links appear on the success screen, and WooCommerce's "Completed order" email sends them a copy. Logged-in customers will keep the existing account flow.
Yes. Chit → Settings lets you set the prefix (including removing it entirely) and the shape of the code body — how many groups of how many characters, e.g. 2 groups of 6. Changing the format only affects newly generated codes — everything you've already issued keeps working exactly as printed, because redemption matches the stored code, not the current format.
Yes — Chit → Import accepts a CSV with the columns code,sku,status,activated_at,activated_email (a sample file is downloadable on that page). Codes keep their status, so already-used codes stay used. The import runs in the background via WooCommerce's scheduler, handles hundreds of thousands of rows, skips duplicates, and every import can be deleted again in one click.
No. Codes are single-use. Once redeemed, the status flips to activated permanently. If you need multi-use license-key behaviour, that's a different use case and not currently supported.
Yes. Visit Chit → View Codes, filter by the batch number, and click Revoke on each (or use the batch dropdown to scope the list). Revoked codes can't be redeemed.
The Print PDF action opens a standalone HTML page laid out for A4 print; you then use your browser's Print → Save as PDF option.
It's WooCommerce's default behaviour for any order moving to completed status. The email is useful as it contains the download link.
Deactivating leaves your data intact. Deleting the plugin from the Plugins screen runs the uninstall script, which drops the chit_codes and chit_batches tables and clears the related options. The auto-created redemption page is not deleted — you can remove it manually from Pages → Trash.
manage_woocommerce — the same capability WooCommerce uses for its own back-office screens. Shop managers can use Chit; regular subscribers cannot.
chit_redemption_zero_total filter) restores the old behaviour.