Skip to content

Configuration

Gift Cards is configured in two places: the global settings page for codes, emails and labels, and the product editor, where you flag a product as a gift card and set its value.

Open WooCommerce → Gift Cards in wp-admin.

The master switch for the gift-card system. When off, no codes are generated and the checkout redeem field is hidden.

A prefix added to the front of every generated code (for example GIFT-), so cards are easy to recognise in support and in the order list. The unique part is appended automatically.

The wording shown on the cart total when a code is applied. It supports the {code} token, so you can show which card was used — for example Gift card {code} applied.

The subject and body of the email the recipient receives with their code. Both are applied to the actual email sent (not just stored) and the default strings are translatable. The settings page offers click-to-insert tokens and a live preview so you can see the email as you edit it.

When on (the default), the gift-card codes issued by an order are shown to the buyer on the order-confirmation page and in their order emails — handy when someone buys a card for themselves or wants to forward it manually.

The card itself is an ordinary WooCommerce product:

  1. Create or edit a product and set its price to the gift-card value.
  2. On the General tab, tick Gift card.
  3. Save.

The card value comes from the product price, and quantity is honoured — buying multiple units issues multiple codes, one per unit.

When the order completes, the plugin generates a unique code per purchased unit, stores its balance, and emails the code to the recipient. At checkout, entering a code applies its balance as a discount on the order total. The stored balance decrements on order completion, and any unused balance carries over to a later order — partial redemption is built in.

By default the code is emailed to the order’s billing email, so a card is always deliverable. An optional per-line recipient email can override this so the card goes straight to the person being gifted.

Gift Cards is compatible with WooCommerce HPOS (Custom Order Tables) and the Cart/Checkout Blocks. On activation the plugin creates its own gift-card table to track balances.