Download the PHP package mothership-ec/cog-mothership-discount-rewards without Composer
On this page you can find all versions of the php package mothership-ec/cog-mothership-discount-rewards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mothership-ec/cog-mothership-discount-rewards
More information about mothership-ec/cog-mothership-discount-rewards
Files in mothership-ec/cog-mothership-discount-rewards
Download mothership-ec/cog-mothership-discount-rewards
More information about mothership-ec/cog-mothership-discount-rewards
Files in mothership-ec/cog-mothership-discount-rewards
Vendor mothership-ec
Package cog-mothership-discount-rewards
Short Description Cog module to allow discount rewards with the 'Refer a Friend' module
License GPL-3.0+
Homepage http://mothership.ec
Package cog-mothership-discount-rewards
Short Description Cog module to allow discount rewards with the 'Refer a Friend' module
License GPL-3.0+
Homepage http://mothership.ec
Please rate this library. Is it a good library?
Informations about the package cog-mothership-discount-rewards
Mothership Refer a Friend: Discount Rewards
The Message\Mothership\DiscountReward
cogule is a library that plugs into the <a href="Refer">https://github.com/mothership-ec/cog-mothership-refer-a-friend"">Refer a Friend cogule, allowing users to receive a discount reward for referring someone to the e-commerce site.
This cogule includes:
Reward types:
- Discount reward - A discount reward for the referrer.
Triggers:
- Order create - The reward is triggered when the referred user creates an order, i.e. they buy something. The specific event that is being listened for is the
OrderEvents::CREATE_COMPLETE
event.
Constraints:
- Minimum order - A magic constraint that will be cloned by the
MinumumOrderFactory
for each currency registered in thecurrency.yml
config file. This sets how much the total gross of the order must be for the reward creation to be triggered. - Timeout - A constraint that determines how long (in days) the referred user has to create an order. If the referral has timed out, it will update the status to
expired
.- TODO: Create cron task to automatically update timeouts
Reward options
- Discount type - Set whether the discount is a percentage value or a specific amount.
- Percentage value - If the discount type is set to Percentage, this sets the value of that percentage
- Set amount - A magic reward type that will be cloned by the
SetAmountFactory
for each currency registered in thecurrency.yml
config file. If the discount type is set to a specific amount, this determines what value the discount has, for each currency.
All versions of cog-mothership-discount-rewards with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
mothership-ec/cog-mothership-refer-a-friend Version ~1.0
mothership-ec/cog Version ~4.0
mothership-ec/cog-user Version ~2.0
mothership-ec/cog-mothership-commerce Version ~5.0
mothership-ec/cog-mothership-discount Version ~2.0
mothership-ec/cog-mothership-refer-a-friend Version ~1.0
mothership-ec/cog Version ~4.0
mothership-ec/cog-user Version ~2.0
mothership-ec/cog-mothership-commerce Version ~5.0
mothership-ec/cog-mothership-discount Version ~2.0
The package mothership-ec/cog-mothership-discount-rewards contains the following files
Loading the files please wait ....