Documentation

Learn how to set up, customize, and expand the functionality of WooCommerce

Developer Docs


Documents

  • Add a recipient name field to gift cards

    Add a recipient name field to the gift card product form and make it available in exports and email placeholders. Importing this custom field requires additional code. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file […]

  • Automatically redeem gift cards for signed-in customers

    Redeem a gift card to the account of a signed-in customer who enters its code at checkout. Guests can still apply cards without redeeming them to an account. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the […]

  • Change the gift card delivery calendar styling

    Remove the Gift Cards styling class from the delivery date calendar when its appearance conflicts with your theme. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening […]

  • Choose the characters used in gift card codes

    Choose which characters can be used when generating gift card codes. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening PHP tag. By default, the characters used […]

  • Generate gift cards when an order moves to Processing

    Generate gift card codes when an order moves to Processing. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening PHP tag. By default, Gift Card codes are […]

  • Hide the gift card delivery date field

    Hide the delivery date picker on gift card product pages. This changes the display only and does not prevent a date from being submitted. Test custom CSS on a staging site before adding it to your store. The delivery date field shows Now when no date is selected. Add the following CSS to your site […]

  • Limit the gift card message field in the browser

    Set a browser-side character limit for the gift card message field. This does not enforce a server-side limit. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening […]

  • Match the gift card recipient and billing email at checkout

    Check that the billing email entered at checkout matches the recipient email on each applied gift card. This does not verify the shopper’s identity. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside […]

  • Prevent partial gift card payments on subscription renewals

    Prevent a gift card balance from partially paying a subscription renewal. The customer’s balance must cover the full renewal total. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit […]

  • Remove coupons when a gift card is used for payment

    Remove coupons from a cart when a customer applies a gift card to pay for the order. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening PHP […]

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.