roadster31/parainage-simple-module

Installs: 45

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 1

Type:thelia-module

dev-master 2018-07-24 08:26 UTC

This package is auto-updated.

Last update: 2024-10-19 02:52:11 UTC


README

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

Installation

Manually

  • Copy the module into <thelia_root>/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

Add it in your main thelia composer.json file

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

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 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

[sponsorship]

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

Input arguments

Output arguments

Exemple

{loop type="sponsorship" name="sponsorship_loop"} {/loop}

[parainagesimple]

return all sponsor customers with a coupon from sponsorship

Input arguments

Output arguments

Exemple

{loop type="parainagesimple" name="parainagesimple_loop"} {/loop}

[info-parainagesimple]

return this module config

Input arguments

Output arguments

Exemple

{loop type="info-parainagesimple" name="info_parainagesimple_loop"} {/loop}

Other ?

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