mothership-ec / cog-mothership-discount-rewards
此包已被弃用且不再维护。未建议替代包。
Cog模块,允许使用“推荐好友”模块实现折扣奖励
1.0.0
2015-12-09 11:18 UTC
Requires
- php: >=5.4.0
- mothership-ec/cog: ~4.0
- mothership-ec/cog-mothership-commerce: ~5.0
- mothership-ec/cog-mothership-discount: ~2.0
- mothership-ec/cog-mothership-refer-a-friend: ~1.0
- mothership-ec/cog-user: ~2.0
This package is not auto-updated.
Last update: 2021-03-22 11:07:47 UTC
README
Message\Mothership\DiscountReward
cogule是一个库,可以插入到https://github.com/mothership-ec/cog-mothership-refer-a-friend的“推荐好友”cogule中,允许用户推荐他人到电子商务网站以获得折扣奖励。
此cogule包括
奖励类型
- 折扣奖励 - 为推荐者提供的折扣奖励。
触发器
- 订单创建 - 当被推荐的用户创建订单时触发奖励,即他们购买东西。正在监听的具体事件是
OrderEvents::CREATE_COMPLETE
事件。
约束
- 最低订单 - 一个由
MinumumOrderFactory
为在currency.yml
配置文件中注册的每个货币复制的神奇约束。这设置了订单总毛利润必须达到多少才能触发奖励创建。 - 超时 - 一个确定被推荐用户需要多长时间(以天为单位)创建订单的约束。如果推荐超时,它将状态更新为
过期
。- 待办事项:创建cron任务以自动更新超时
奖励选项
- 折扣类型 - 设置折扣是百分比值还是特定金额。
- 百分比值 - 如果折扣类型设置为百分比,则此设置该百分比的值
- 设置金额 - 一个由
SetAmountFactory
为在currency.yml
配置文件中注册的每个货币复制的神奇奖励类型。如果折扣类型设置为特定金额,则此确定每个货币的折扣值。