After July 2021, the 2.3.x release line will no longer receive quality updates, or user guide updates. PHP 7.3 reaches end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. We strongly recommend planning your upgrade now to Adobe Commerce 2.4.x to help maintain PCI compliance.

Configuring Gift Card Account

The information on this page is intended for Adobe Commerce 2.3 customers who are on an extended support contract. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.
Magento Commerce only. Learn more.

The Gift Card configuration establishes the default settings for all gift cards for the store view and manages the code pool. The code pool is a set of unique gift card codes in a specific format. Codes from the pool are used each time a gift card account is created. It is the responsibility of the store administrator to ensure that there are enough codes available for gift card sales. Make sure to generate a code pool before offering gift cards for sale. By default, Magento generates 1,000 codes. A new code pool is not generated until there are no more codes available in the current pool.

Step 1: Configure email notifications

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Sales and choose Gift Cards.

  3. Expand the Gift Card Email Settings section and do the following:

    • Set Gift Card Notification Email Sender to the store identity that appears as the sender of gift card notifications.

    • Set Gift Card Notification Email Template to the template that is used for the notification.

    Gift Card Email Settings

  4. Expand the Email Sent from Gift Card Account Management section and do the following:

    • Set Gift Card Email Sender to the store identity to appear as the sender of the gift cards.

    • Set Gift Card Template to the template you want to use for the gift card.

Step 2: Complete the general settings

  1. Expand the Gift Card General Settings section.

  2. To allow the customer to redeem the value on the card for cash, set Redeemable to Yes.

  3. For Lifetime (days), enter the number of days before the card expires.

    If there is no expiration date, leave the field blank.

    Depending on your location, it may be illegal for gift cards to expire. Check your local laws before setting a lifetime for your gift cards.

  4. If you want the customer to have the option to enter a message to accompany the gift card, set Allow Gift Message to Yes and enter the number of characters available for the message for Gift Message Maximum Length.

  5. Set Generate Gift Card Account when Orders Item is to one of the following:

    Ordered The gift card account is created when the order is placed.
    Invoiced The gift card account is created after payment is captured and the order is invoiced.

    Gift Card General Settings

Step 3: Establish the gift card code pool

  1. Expand the Gift Card Account General Settings section and do the following:

    Gift Card Account General Settings

    • To customize the code, complete the following according to your preference:

      • Code Length
      • Code Format
      • Code Prefix
      • Code Suffix
      • Dash Every X Characters
    • To determine the number of codes to generate, enter the New Pool Size.

    • To specify when you receive notification to restock the code pool, enter the Low Code Pool Threshold.

  2. Before you generate the code pool, click Save Config.

  3. Click Generate.

  4. When complete, click Save Config.