🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Create Gift Card in Magento 2?

By Sanjay JethvaUpdated on Jan 02, 2025 6 min read

Do you know the biggest challenge shoppers face when buying gifts for their loved ones from your store? Finding the right product for them.

They may add a few products to the cart and abandon it, eventually leaving with an envelope filled with cash.

You can seize this opportunity to increase your store’s revenue by offering gift cards. In this blog post, we will show you how to create a gift card in Magento 2.

Important Sections

  • How to Create a Gift Card in Magento Enterprise?
    • Step 1: Create a New Gift Card Product
    • Step 2: Enter Basic Details
    • Step 3: Set Gift Card Amount
    • Step 4: Enter Gift Card Information
  • How to Create a Gift Card in Magento Open Source?
    • Step 1: Install and Configure Magento 2 Gift Card Extension
    • Step 2: Create a New Gift Card Product
    • Step 3: Enter Gift Card Details

What is a Gift Card?

A gift card acts as a prepaid card that can be used to purchase any product or service from the business by the receiver. They’re useful to gift a certain amount of credit from a store to the receiver to buy anything of their choice. Offering gift cards in e-commerce is a win-win opportunity for both business and the customer.

Magento 2 Gift Card

It helps you:

  • Offer personalized gifting experience to customers
  • Promote your online store through referrals
  • Drive customer loyalty through rewards

Now, let’s see how you can create a gift card in Magento 2 and leverage its benefits for your online brand.

Is It Possible to Create Gift Cards in Magento 2?

It depends on the Magento edition you’re using.

There is a default functionality to create gift cards in Magento Enterprise (Adobe Commerce) edition. You can directly create gift card type products from the store’s admin panel. There is no default support for gift card products in Magento Community (Open Source) edition. However, you can achieve similar gift card functionality in Magento Open Source by installing a gift card extension.

How to Create a Gift Card in Magento Enterprise?

Step 1: Create a New Gift Card Product

In the Magento Enterprise admin panel, go to Catalog > Products.

Click the dropdown menu beside the Add Product button and select “Gift Card.”

Add new gift card product

It will create a new gift card-type product in the store, which you can configure by entering information.

Step 2: Enter Basic Details

Enable the product and select “Gift Card” in the Attribute Set dropdown. Enter product name and select the card type from virtual or physical as per your preference.

Enter basic details for the gift card product

Step 3: Set Gift Card Amount

Next, set the predefined value and stock quantity for the gift card.

You can also choose an option to accept open amount (meaning customer can purchase a custom value gift card.)

Set gift card amount value

Step 4: Enter Gift Card Information

Now, open the Gift Card Information section, where you can configure the expiry date, enable message customization, and choose the email notification template.

Enter gift card information

Once you’re done with these configurations, you can choose category, add description, SEO details, images & media and other information to the gift card product just like other standard products and save it. The customers will be able to purchase the gift card from the frontend and be able to renew it for future orders in the store.

Here’s the Magento 2 gift card product on the frontend:

Gift card on Magento 2 Frontend

How to Create a Gift Card in Magento Open Source?

Magento 2 Open Source users can create and sell gift cards in their store by using a third-party module. Here are the complete steps to achieve this functionality.

Step 1: Install and Configure Magento 2 Gift Card Extension

Go to Magento 2 Gift Card and download the extension for your store.

Meetanshi Magento 2 Gift Card

Extract the downloaded zip file and upload it to your Magento 2 root directory via FTP.

Log into your Magento 2 SSH and run the following commands one by one to install the extension:

  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy –f
  • php bin/magento cache:flush

The Magento 2 Gift Card extension will be successfully added to your store.

Once installed, you can go to the extension’s configuration to set up SMS API for notifications and set default behavior of the gift cards.

Step 2: Create a New Gift Card Product

Once configured, go to Catalog > Products, open the “Add Product” dropdown menu and select “Gift Card.”

1-add-new-gift-card-product

Add new gift card product

Step 3: Enter Gift Card Details

Now, enter details for the gift card to create a product in Magento 2 just like you do for standard products – enter basic details like Name, Quantity, and Category.

You can also add predefined gift card values to offer to customers in the amount dropdown menu.

Enter Gift Card Information in Magento 2

Fill up other information for the Magento 2 gift card product like SEO details, Images, and Description and save the product.

Once configured, the customers will be able to purchase the Magento 2 Gift Card on the frontend. They can choose the gift card value, enter receiver’s details, and send scheduled notifications via Email or SMS.

Magento 2 Gift Card on Frontend

In our opinion, this module is even better than Adobe Commerce’s in-built feature.

Why? Because it takes the gifting experience a step further by allowing customers to send scheduled notifications for gift cards to their loved ones. And as a store owner, you can also view the gift card accounts in a backend grid.

Magento 2 Gift Card

Create and sell gift cards allowing the buyers to buy anything from the store using it.

Get Extension
Sanjay Jethva Full Image
Article bySanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.