thelia / customer-statistic-module
1.0.3
2019-10-30 14:00 UTC
Requires
- thelia/installer: ~1.1
README
为您提供关于客户购买文章的统计数据。
截图
安装
手动
- 将模块复制到
<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,显示客户的总营业额。