定制 mothership-ec/cog-mothership-discount-rewards 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mothership-ec/cog-mothership-discount-rewards

最新稳定版本:1.0.0

Composer 安装命令:

composer require mothership-ec/cog-mothership-discount-rewards

包简介

Cog module to allow discount rewards with the 'Refer a Friend' module

README 文档

README

The Message\Mothership\DiscountReward cogule is a library that plugs into the <a href="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 the currency.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 the currency.yml config file. If the discount type is set to a specific amount, this determines what value the discount has, for each currency.

统计信息

  • 总下载量: 312
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-03-25