Zum Inhalt springen

Gift Cards

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Gift Cards turns any WooCommerce product into a gift card. Tick one checkbox, set the product price to the card value, and when an order reaches Completed the plugin generates a unique store-credit code, records its balance in its own table, and emails the code to the recipient. The code is redeemed in a field at checkout, where its balance comes off the order total; any leftover stays on the code for a later order.

  • Flags any product as a gift card with one checkbox on the product editor’s General tab, the price is the card value.
  • Generates a unique code per purchased unit on order completion and emails it with wp_mail.
  • Adds a redeem-code field to the checkout that applies the card balance as a negative cart fee (a discount line).
  • Keeps the unused balance on the code after a partial spend, so one card can cover several orders until it runs out.
  • Stores each card, code, balance, recipient email, source order, in a dedicated {prefix}giftcards table.
  • Lets you set the code prefix, the checkout discount label and the recipient email subject and body, all with {code}/{amount} tokens.
  • Optionally lists the issued codes on the buyer’s order-confirmation page and in their order emails.
  1. A shopper buys a gift-card product like any other line item.
  2. When the order is marked Completed, the plugin issues one code per unit (the per-unit amount is the line total divided by quantity, so coupons and quantities are honoured) and emails each code to the recipient, by default the order’s billing email, or a per-line recipient address if one was captured at add-to-cart time.
  3. The recipient enters the code in the checkout redeem field. The balance applies as a discount on the order subtotal (capped at the order total), and on completion the balance is decremented by the amount actually used.
  4. Any remaining balance stays on the same code for the next order.

Issuance and redemption both fire on woocommerce_order_status_completed, and a per-order guard prevents a re-completed order from issuing codes or decrementing balances twice.

  • Free on WordPress.org: selling cards, the emailed code, redemption at checkout, and a stored balance with partial redemption carried over.
  • Pro (Freemius) adds buyer-chosen custom amounts, scheduled delivery, a balance-check shortcode, admin redemption history, custom card email designs and bulk CSV generation. See Gift Cards Pro.

Gift Cards sits alongside Add-Ons (product options) and Bundle (product sets), independent GPL plugins from wppoland.com.

Gift Cards is a standalone gift-card system. Polski PRO also offers gift cards, pick one, do not run both, or codes would be issued and redeemed twice. With Polski FREE it is safe to run side by side. See Standalone storefront plugins.