PHPackages                             cqfdev/gift-voucher-module - 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. cqfdev/gift-voucher-module

ActiveThelia-module

cqfdev/gift-voucher-module
==========================

0561[1 PRs](https://github.com/roadster31/GiftVoucher/pulls)PHP

Since Mar 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/roadster31/GiftVoucher)[ Packagist](https://packagist.org/packages/cqfdev/gift-voucher-module)[ RSS](/packages/cqfdev-gift-voucher-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Gift Voucher
============

[](#gift-voucher)

The module allow your customer to buy gifts vouchers.

To create a gift-voucher, create a new product, and check the 'This product is a gift voucher' box in the product's general tab (please see 'Hook' section below). When this product will be bought and paid, a gift voucher will be generated. The gift amount is just the price of the product.

When a customer put this product in his cart, a special discount code will be created when the order will be paid. This discount code gives a fixed amount discount equals to the price of the product. An email which contains this discount code is then sent to your customer.

The provided email is... well, raw. But you can prettify it as tou like. Just edit the `gift_voucher_customer_message`in your Back-Office.

Future versions will allow a customization of the coupon parameters.

Installation
------------

[](#installation)

### Manually

[](#manually)

- Copy the module into `/local/modules/` directory and be sure that the name of the module is GiftVoucher.
- Activate it in your Thelia administration panel

### Composer

[](#composer)

Add it in your main Thelia composer.json file

```
composer require cqfdev/gift-voucher-module:~1.0

```

Hook
----

[](#hook)

This module uses a specific hook in the back-office. You should add it in templates/backOffice/default/includes/product-general-tab.html, just after the 'visible' form field declaration :

`{hook name="product-edit.right-column.bottom" product_id=$ID form=$form}`

Example:

```
...
                {form_field field='visible'}

                        {intl l='Visibility'}

                                {$label}

                {/form_field}

                {hook name="product-edit.right-column.bottom" product_id=$ID form=$form}

...

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a46ed88ee1c801d1002d3e49bbddf2f7ad82265e8f3de6f2894793190163fd6?d=identicon)[cqfdev](/maintainers/cqfdev)

---

Top Contributors

[![roadster31](https://avatars.githubusercontent.com/u/2197734?v=4)](https://github.com/roadster31 "roadster31 (6 commits)")

### Embed Badge

![Health badge](/badges/cqfdev-gift-voucher-module/health.svg)

```
[![Health](https://phpackages.com/badges/cqfdev-gift-voucher-module/health.svg)](https://phpackages.com/packages/cqfdev-gift-voucher-module)
```

PHPackages © 2026

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