Linux 软件免费装
Banner图

Tlloancy People's Giftcard – Gift Cards for WooCommerce

开发者 tlloancy
更新时间 2026年11月23日 04:39
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce store credit gift certificate gift card voucher

下载

1.1.0 1.1.1 1.0.0

详情介绍:

Tlloancy People's Giftcard turns any WooCommerce product into a gift card your customers can personalise. Suggested amounts or a free amount, a recipient, a message, a delivery date. After payment the recipient gets a designed email with a code. The balance is spent in the normal coupon field, in as many orders as it takes. No upsell, no "Pro" tab. Every feature below is in the free plugin. For your customers For you Built so you can trust the balance Works with WooCommerce 8.2+ with the classic or the block checkout, block themes and classic themes, any payment gateway, any SMTP plugin (emails go through WooCommerce's mailer). Translations Translate it on translate.wordpress.org. The text domain is tlloancy-peoples-giftcard.

安装:

  1. Install and activate WooCommerce, then Tlloancy People's Giftcard.
  2. Edit a simple product, tick Gift card in the General tab, and publish.
  3. Optional: open WooCommerce → Gift cards → Settings to set suggested amounts, a validity period and the email subject.
  4. Optional: add [tlpg_balance] to a page so customers can check their balance.

屏幕截图:

  • The gift card email the recipient receives.
  • WooCommerce → Gift cards: balance owed, filters, search, export.
  • A card with its full history and the actions you can take.
  • The balance checker on the storefront.

升级注意事项:

1.1.1 Security and reliability update: amounts that round to zero are refused, My Account hides gift card codes, and code guessing is limited more strictly. 1.0.0 New name and a rewritten engine. Cards from Gift Card Amount are imported automatically.

常见问题:

Does it replace the WooCommerce coupon field?

No. The customer enters the gift card code in the normal coupon field. That works in the classic checkout and in the checkout block, with no extra step.

Does a gift card pay for shipping?

In "Prepaid balance" mode, yes: the card pays the whole order, shipping and taxes included. In "Discount" mode, a card is applied as a discount on the products, as a coupon is, so shipping is not covered.

Can a gift card buy another gift card?

No. Gift card products are excluded from what a card can pay for.

What is the difference between "Discount" and "Prepaid balance"?

Open WooCommerce → Gift cards → Settings → Gift card redemption.

  • Discount (default, the behaviour of 1.0.0): the card lowers the price of the products like a coupon, so taxes are calculated on the lower price. Shipping is not covered.
  • Prepaid balance: the card is money already paid. It is taken off the order total, shipping and taxes included, as a "Gift card payment" line. The taxable amount of the order is not reduced.
Example: a customer holds a 20 card and buys 25 of products. The card pays 20 and the customer pays 5. If the order is 15, the card pays 15 and 5 stays on the card.

Is tax charged when the card is sold, or when it is spent?

It depends on the voucher and on your country, so ask your accountant. In the EU, tax on a single-purpose voucher is generally due when it is sold, and tax on a multi-purpose voucher when it is spent. As a rule of thumb, "Discount" suits the first case, and "Prepaid balance" with the gift card product's tax status set to "None" suits the second. The plugin does not decide this for you.

What happens to the code if the order is refunded or cancelled?

A card bought on that order is voided if it was not used. A balance that paid for that order goes back on its card. A card the merchant voided by hand stays voided. Moving the order to the trash, or deleting it, does the same; restoring it from the trash takes the balance again. A partial refund does not change a card balance by itself: the order gets a note, and you can use "Adjust" on the card.

An order was never paid. Is the balance stuck?

No. A balance reserved by an order that stays unpaid for 48 hours is given back. If that order is paid later, the balance is taken again. Change the delay with the tlpg_release_pending_after_hours filter.

Can I send a card on a future date?

Yes. The buyer picks a "send on" date, up to one year ahead. WP-Cron sends the email on that day. Cards waiting to be sent are listed under the "Scheduled" filter.

Where are the cards stored?

In two tables of your database (tlpg_cards and tlpg_ledger). They are kept when you delete the plugin unless you tick "Delete all gift cards and history" in the settings.

I used "Gift Card Amount" before. Will I lose my cards?

No. On activation, Tlloancy People's Giftcard imports the cards, the product settings and the code prefix from that earlier plugin.

How do customers check a balance?

Put [tlpg_balance] on any page. Logged-in customers also see their cards in My Account → Gift cards. The page that holds the balance checker is marked as not to be cached, because its form carries a security token.

Why does My Account show only the end of a code?

A gift card works like cash, so the full code is shown there only for a card the customer bought on their own account and sent to their own address. Cards sent to the account's email address are listed with the code hidden except for its last four characters; the full code is in the email that delivered it. The billing email is not used to find cards, because customers can type any address in it. To change this, use the tlpg_account_show_full_code filter.

What limits apply when someone buys a gift card?

The amount must be at least the smallest unit of your prices (0.01 with two decimals) and cannot have more decimals than your prices, so a card is always worth what it costs. Set a higher minimum on the product. One order can hold up to 100 gift cards; change it with the tlpg_max_cards_per_order filter. A card line that cost nothing is not turned into a card on a store that keeps coupons off gift cards; allow it with the tlpg_issue_unpaid_cards filter.

Behind Cloudflare or a reverse proxy, how are code guesses limited?

Failed lookups are counted per visitor and per network. The visitor's address is the connection address; forwarding headers such as X-Forwarded-For are only read when the connection comes from a private address (a proxy of your own server), because visitors can write those headers themselves. If your CDN shows its own public addresses, return the real visitor address with the tlpg_client_ip filter. tlpg_max_failed_lookups changes the limit (10 per 15 minutes).

更新日志:

1.1.1 1.1.0 1.0.0