Linux 软件免费装
Banner图

Chit - Download codes for WooCommerce

开发者 jpgleeson
更新时间 2026年6月2日 01:04
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce downloads codes voucher redemption

下载

1.0

详情介绍:

Chit bridges your physical sales and your WooCommerce digital downloads. Print a code on a card, sticker, leaflet, or receipt; the customer enters the code on your site to receive access to the product's downloadable files. Picture this for selling in person at a market - you're selling your books but normally through webstore orders people get a PDF download too. This squares the circle. It plugs into WooCommerce's existing download system rather than reinventing it. When a code is redeemed, Chit creates a real (zero-total) WooCommerce order for the customer, marks it complete, and WooCommerce grants the download permissions exactly as it would for a paid order. The redemption appears in the customer's My Account → Downloads page and in WooCommerce → Orders with a note explaining its origin. What you get How it integrates with WooCommerce Chit does not maintain its own download permissions. On activation it creates a WooCommerce order on the customer's account with the redeemed product as a line item and a $0 total, then sets the order status to completed. WooCommerce's existing download-permission machinery takes care of the rest: the customer sees the order in their account, the download file appears in My Account → Downloads, the download counter and any expiry rules you have configured all behave normally.

安装:

  1. Upload the chit folder to wp-content/plugins/ (or install via the Plugins screen).
  2. Activate Chit through the Plugins screen.
  3. A "Redeem Chit Code" page is created automatically and assigned the [chit_redeem] shortcode. You can find it under Pages, rename it, or move it under another menu as you like.
  4. Go to Chit → Settings and (optionally) upload a logo to appear on printed code sheets.
  5. Generate your first batch under Chit → Generate.
Requirements

常见问题:

Where does the customer enter their code?

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.

Does the customer need an account?

Yes. Codes grant download permission to a specific WooCommerce account so the customer can re-download the file later. Guests who try to redeem are sent to the login page first.

Can the same code be redeemed twice?

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.

I generated 50 codes for the wrong product. Can I cancel them?

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.

How are PDFs generated?

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.

The customer gets a "your order is complete" email after redeeming. Is that intentional?

It's WooCommerce's default behaviour for any order moving to completed status. The email is useful as it contains the download link.

What about uninstalling?

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.

What capability is required for admin actions?

manage_woocommerce — the same capability WooCommerce uses for its own back-office screens. Shop managers can use Chit; regular subscribers cannot.

更新日志:

1.0