sanjeev-kr/magento2-customer-purchase-history 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sanjeev-kr/magento2-customer-purchase-history

Composer 安装命令:

composer require sanjeev-kr/magento2-customer-purchase-history

包简介

magento 2 extension for customer purchase history.

README 文档

README

Sanjeev_CustomerPurchaseHistory is a light weight Magento 2 module that computes customers purchase history metrics and exposes them in customers listing in admin. The module collects store wise aggregates like total purchases amount, average purchase amounts, and last purchase date of each customer. A cron job or console command triggers the computation.

Features

  • Computes per-customer aggregates: total purchase amount, average purchase amount, and last purchase date.
  • Filter customers based on purchase history metrics.
  • Enable / disable store wise calcuation of purchase history metrics via store configuration.
  • Store wise select orders' statues to include in the metrics via store configuration.
  • Console command: on-demand metrics calculation run manually CLI command

Composer installation

composer require sanjeev-kr/magento2-customer-purchase-history
php bin/magento module:enable Sanjeev_CustomerPurchaseHistory
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

Manual installation

  1. Copy the module to app/code/Sanjeev/CustomerPurchaseHistory.
  2. Enable and install the module:
php bin/magento module:enable Sanjeev_CustomerPurchaseHistory
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

Uninstall (optional)

Disable and remove the module from app/code, then:

bin/magento module:disable Sanjeev_CustomerPurchaseHistory
bin/magento setup:upgrade
bin/magento cache:flush

(Adjust for your deployment; you may need setup:di:compile and setup:static-content:deploy -f again in production.)

Running the generator

  • Cron: The job sanjeev_customer_purchase_history_generate is scheduled in etc/crontab.xml to run nightly at 02:00 AM for enabled stores.
  • CLI: Run the console command to generate the report on demand for enabled stores:
php bin/magento sanjeev:customer-purchase-history:report

License

This project is licensed under the MIT License. See LICENSE.txt.

Author

Sanjeev Kumar

If my work helps you and you want to appreciate, please Sponor. I would appreciate you.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固