nitra / e-commerce-site-buyerreportsbundle

此包已被废弃且不再维护。未建议替代包。

买家报告包

安装: 243

依赖者: 0

建议者: 0

安全: 0

类型:symfony-bundle

v1.0 2014-09-10 15:23 UTC

This package is auto-updated.

Last update: 2018-04-08 16:41:01 UTC


README

描述

用于各种买家通知的包。

连接

为了在项目中连接此模块,需要以下内容:

  • composer.json:
{
    ...   
    "require": {
        ...
        "nitra/e-commerce-site-buyerreportsbundle": "dev-master",
        ...
    }
    ...
}
  • app/AppKernel.php:
<?php

    //...
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        //...
        $bundles = array(
            //...
            new Nitra\BuyerReportsBundle\NitraBuyerReportsBundle(),
            //...
        );
        //...
        return $bundles;
    }
    //...
}

命令

  • buyer:report:price:down - 通知用户商品价格降低的命令
  • buyer:report:receipt - 通知用户商品库存到货的命令
  • buyer:review:after:purchase - 购买后评论
    • 参数 (buyer:review:after:purchase store-host day-to-send)
      • store-host - 店铺主机(命令在数据库中查找店铺,如果没有找到,则不会生成网站地图),默认为 localhost
      • day-to-send - 发送电子邮件请求评论商品的天数,默认为 14
  • buyer:forgoten:order - 忘记订单通知。如果用户已授权并且购物车中有商品但未下单,则在用户离开网站(或未在网站上活跃一定时间)后发送给用户。
    • 参数 (buyer:forgoten:order hours-to-send)
      • hours-to-send - 用户不活跃的小时数,在超过这些小时数后需要发送提醒,默认为 3
  • buyer:alternative:products - 提供替代商品。如果用户收到忘记订单的提醒,但没有做出任何反应,那么在超过指定天数的命令后,将给用户发送一封包含替代商品的邮件。
    • 参数 (buyer:alternative:products days-to-send)
      • days-to-send - 用户不活跃的天数,在超过这些天数后需要发送包含替代商品的邮件,默认为 7。