thelia/customer-statistic-module

安装: 393

依赖项: 0

建议者: 0

安全: 0

星级: 0

关注者: 6

分支: 2

开放问题: 1

类型:thelia-module

1.0.3 2019-10-30 14:00 UTC

This package is auto-updated.

Last update: 2024-08-25 16:01:04 UTC


README

为您提供关于客户购买文章的统计数据。

截图

Take Customer Account Screenchot 1

安装

手动

  • 将模块复制到 <thelia_root>/local/modules/ 目录,并确保模块名称为 CustomerStatistic。
  • 在thelia管理面板中激活它

Composer

将其添加到主thelia composer.json文件中

composer require thelia/customer-statistic-module:~1.0.3

用法

在模块列表中激活模块。然后在客户编辑页面上将出现一行新内容,提供客户购买文章的统计数据。

钩子

customer.edit钩子用于将统计数据附加到客户编辑页面上。

循环

[customer.statistic.article.statistic]

输入参数

输出参数

示例

{loop name="customer.statistic.article.statistic" type="article.statistic"}<!-- 你的模板 -->{/loop}

附加信息

循环中会添加一个“总计”产品,其$PRODUCT_ID为-1,显示客户的总营业额。