PHPackages                             bydn/giftcard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bydn/giftcard

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

bydn/giftcard
=============

Gift card

1.0.2(12mo ago)536↓75%4MITPHPPHP &gt;=8.1

Since Nov 7Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension)[ Packagist](https://packagist.org/packages/bydn/giftcard)[ RSS](/packages/bydn-giftcard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Magento 2 Giftcard Extension
============================

[](#magento-2-giftcard-extension)

This Magento 2 extension provides comprehensive gift card functionality, allowing customers to easily purchase and redeem gift cards, whether for personal use or as a thoughtful gift for special occasions. Store owners can effortlessly create, manage, and track gift cards, ensuring a smooth process for both customers and administrators.

With flexible configuration options, such as customizable card values and expiration times, the extension offers great versatility to meet diverse business needs. This user guide will walk you through the installation, setup, and usage of the extension, ensuring you get the most out of this feature for your online store.

Features
--------

[](#features)

- Creation gift cards via the admin panel.
- Integration of gift card functionality into the shopping cart.
- Integration of gift card functionality into the checkout page.
- Email notifications with customizable templates for sending gift card information to customers.

Instalation
===========

[](#instalation)

Run:

```
composer require bydn/giftcard
./bin/magento module:enable Bydn_Giftcard
./bin/magento setup:upgrade

```

Configuration
=============

[](#configuration)

Access the configuration going to:

```
Stores => Configuration => Sales => Gift cards (by DN).

```

Configuration has 4 sections.

General configuration
---------------------

[](#general-configuration)

**Enable**. This option allows you to completely enable or disable the extension. **Card default amounts**. Set the default amounts for gift cards. These values can be modified when creating a gift card. See the section "Creating a Gift Card" for more details.

Email configuration
-------------------

[](#email-configuration)

**Send gift card by email**. Allows customers to send the gift card code to a friend via email. If this option is disabled, the gift card will be sent to the purchaser. **Email sender**. Defines the identity of the sender for the gift card email. **Gift card email template**. The email template used when sending the gift card code to the recipient.

Please make sure to customize the email template according to your requirements in:

```
Marketing => Email Templates

```

Expiration
----------

[](#expiration)

**Single use**. If enabled, customers can only apply the gift card once, even if there is a remaining balance on the card. **Enable gift card expiration**. Allows you to enable expiration for gift cards. **Expiration time (in days)**. Set the number of days after which the gift card will expire.

Discounts
---------

[](#discounts)

**Prevent purchasing gift card with another gift card**. If enabled, customers will not be allowed to redeem a gift card to purchase another. This is necessary if you want to apply discounts to gift cards. **Prevent applying discounts on gift card products**. Enable this option to ensure that customers cannot purchase a gift card with any discounts applied.

Creating a gift card
====================

[](#creating-a-gift-card)

Creating a gift card product is as simple as creating any other Magento product.

Just go to:

```
Catalog => Products

```

And select “Gift card“ from the dropdown “Add Product”.

[![Add gift card product](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/raw/master/docs/images/add-product.png)](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/blob/master/docs/images/add-product.png)

Set the common data for the gift card as you would for any other product (name, attribute set, SKU, stock configuration, categories, descriptions, etc.). Set the price to 0.

In the "Customizable Options" section, you will see several custom fields. Pay special attention to the "Card Amount" field, where you can define the available gift card values.

The remaining fields will be required from the customer when purchasing a gift card, enabling the extension to send the gift card to the recipient via email.

**Important: Do not modify the SKU code of the custom options.**

See custom options configuration screenshot in the next page.

Once you create and configure your gift card, you should see something like this in the frontend.

[![View of a gift card in the frontend](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/raw/master/docs/images/giftcard-in-frontend.png)](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/blob/master/docs/images/giftcard-in-frontend.png)

[![Editing custom options of a gift card](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/raw/master/docs/images/custom-options.png)](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/blob/master/docs/images/custom-options.png)

Applying a gift card
====================

[](#applying-a-gift-card)

The extension provides two fields for customers to apply and redeem their gift card amount: one on the cart page and another on the checkout payment page.

[![Applying a gift card in the cart](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/raw/master/docs/images/applying-in-cart.png)](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/blob/master/docs/images/applying-in-cart.png)

Applying in the checkout

[![Applying a gift card in the checkout](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/raw/master/docs/images/applying-in-checkout.png)](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/blob/master/docs/images/applying-in-checkout.png)

Tracking gift cards in the backoffice
=====================================

[](#tracking-gift-cards-in-the-backoffice)

If you want to see a list of gift cards purchased and their current status, balance and movements, in the backoffice, go to:

```
Marketing => Gift card list.

```

[![Gift card list](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/raw/master/docs/images/giftcard-list.png)](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/blob/master/docs/images/giftcard-list.png)

You will see the most important information directly in the listing, but for more details, you can click the “Edit” link (refer to the screenshot on the next page).

On this screen, you can:

- **Modify the gift card data**. Some fields (such as amounts) are locked to protect data integrity and ensure consistency with orders, balances, etc.
- **Enable or disable the gift card**.
- **Delete the gift card if necessary**. Be careful, as deleting it will result in the loss of balance tracking for that gift card. It is recommended to disable the gift card rather than delete it, especially if it was purchased and generated from an order.
- **Adjust the email send date**. You can modify when the gift card will be sent by email.
- **Change the expiration date**. This is particularly useful if you need to extend it for a specific customer.
- **See detailed balance movements**.

[![Edit a gift card in the backoffice](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/raw/master/docs/images/edit-giftcard.png)](https://github.com/danidnm/ByDN-Magento-Giftcard-Extension/blob/master/docs/images/edit-giftcard.png)

Creating a gift card code manually
==================================

[](#creating-a-gift-card-code-manually)

From the back office, there is also the option to manually create a new gift card code, which can be useful in certain situations to reward users who have experienced issues or to correct errors when purchasing a gift card from the frontend.

To do so, just go to the gift card list and press the button “Create gift card” on the top right (see section “Tracking gift cards in the backoffice”)

Having problems
===============

[](#having-problems)

Contact me at soy at solodani.com

License
=======

[](#license)

This Magento 2 extension was created and is maintained by Daniel Navarro ().

If you fork, modify, or redistribute this extension, please:

- Keep the code free and open source under the same GPL-3.0 license.
- Mention the original author in your README, or composer.json.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance51

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~98 days

Total

3

Last Release

361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0577c90cea9f514cbf2bf22ac754b49c4d5f178298e7f3990c944a5374afc373?d=identicon)[danidnm](/maintainers/danidnm)

---

Top Contributors

[![danidnm](https://avatars.githubusercontent.com/u/130283670?v=4)](https://github.com/danidnm "danidnm (66 commits)")[![cloudsfactory](https://avatars.githubusercontent.com/u/66996104?v=4)](https://github.com/cloudsfactory "cloudsfactory (1 commits)")

### Embed Badge

![Health badge](/badges/bydn-giftcard/health.svg)

```
[![Health](https://phpackages.com/badges/bydn-giftcard/health.svg)](https://phpackages.com/packages/bydn-giftcard)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
