PHPackages                             roadster31/parainage-simple-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. roadster31/parainage-simple-module

ActiveThelia-module

roadster31/parainage-simple-module
==================================

0451[1 issues](https://github.com/roadster31/ParainageSimple/issues)PHP

Since Jul 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/roadster31/ParainageSimple)[ Packagist](https://packagist.org/packages/roadster31/parainage-simple-module)[ RSS](/packages/roadster31-parainage-simple-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PLUGIN PARRAINAGE SIMPLE POUR THELIA 2
======================================

[](#plugin-parrainage-simple-pour-thelia-2)

Ce plugin permet aux clients qui parrainent de nouveaux clients d'obtenir une réduction sur leur prochaine commande sous la forme d'un code promo standard qui leur est expédié par mail.

Le filleuls peuvent obtenir une remise en pourcentage paramétrable sur leur première commande.

Contact et support: Franck Allimant / CQFDev - [www.cqfdev.fr](http://www.cqfdev.fr)

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

[](#installation)

### Manually

[](#manually)

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

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require your-vendor/product-upsell-module:~1.0

```

Usage
-----

[](#usage)

Go to module configuration and enter your settings :

- check "send sponsor code" if you want to register beneficiary id, firstname, lastname, email associated with sponsor id With this option you can have the invitation status invitation sent / accepted and also know how much a sponsor earn from each beneficiaries. This option work with a unique code in invitation instead of the sponsor email
- select the sponso discount type
- enter the sponso coupon amount
- enter the minimum cart amount the sponsor must have to use it coupon
- enter the beneficiary discount in percent

Hook
----

[](#hook)

Hook on bo module.configuration - edit module conf Hook on bo customer.edit - display beneficiary's sponsor Hook on fo register.form-bottom - enter a sponsor code or sponsor email on customer registration Hook on fo account.top - display invitation form

Loops
-----

[](#loops)

\[sponsorship\]
---------------

[](#sponsorship)

loop that return sponsorship values if configuration to use invitation with code is not active it des not return anything

### Input arguments

[](#input-arguments)

ArgumentDescription**id**filter by sponsorship id**sponsor\_id**filter by sponsor id**beneficiary\_email**filter by beneficiary id**status**filter by status### Output arguments

[](#output-arguments)

VariableDescriptionIDsponsorship idSPONSOR\_IDsponsor idBENEFICIARY\_IDbeneficiary idBENEFICIARY\_EMAILbeneficiary emailBENEFICIARY\_FIRSTNAMEbeneficiary firstnameBENEFICIARY\_LASTNAMEbeneficiary lastnameSPONSOR\_COUPON\_AMOUNTamount the sponsor earn with this sponsorshipBENEFICIARY\_COUPON\_AMOUNTamount the beneficiary earn with this sponsorshipSTATUSinvitation status### Exemple

[](#exemple)

 {loop type="sponsorship" name="sponsorship\_loop"} {/loop}   {$BENEFICIARY\_FIRSTNAME} {$BENEFICIARY\_LASTNAME} {$BENEFICIARY\_EMAIL} {$STATUS} {$SPONSOR\_COUPON\_AMOUNT}\[parainagesimple\]
-------------------

[](#parainagesimple)

return all sponsor customers with a coupon from sponsorship

### Input arguments

[](#input-arguments-1)

ArgumentDescription### Output arguments

[](#output-arguments-1)

VariableDescriptionCUSTOMER\_IDcustomer idCOUPON\_IDcoupon id### Exemple

[](#exemple-1)

 {loop type="parainagesimple" name="parainagesimple\_loop"} {/loop}   {$CUSTOMER\_ID} {$COUPON\_ID}\[info-parainagesimple\]
------------------------

[](#info-parainagesimple)

return this module config

### Input arguments

[](#input-arguments-2)

ArgumentDescription### Output arguments

[](#output-arguments-2)

VariableDescriptionLABEL\_PROMOTIONpromo labelTYPE\_PARRAINAGEpercent or amountVALEUR\_REMISE\_FILLEULbeneficiary discount amountVALEUR\_REMISE\_PARRAINsponsor discount amountMONTANT\_ACHAT\_MINIMUMminimum cart amount for sponsor to use coupon### Exemple

[](#exemple-2)

 {loop type="info-parainagesimple" name="info\_parainagesimple\_loop"} {/loop}   {LABEL\_PROMOTION}Other ?
-------

[](#other-)

If you have other think to put, feel free to complete your readme as you want.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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 (5 commits)")

### Embed Badge

![Health badge](/badges/roadster31-parainage-simple-module/health.svg)

```
[![Health](https://phpackages.com/badges/roadster31-parainage-simple-module/health.svg)](https://phpackages.com/packages/roadster31-parainage-simple-module)
```

PHPackages © 2026

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