Download the PHP package thelia/customer-statistic-module without Composer
On this page you can find all versions of the php package thelia/customer-statistic-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package customer-statistic-module
Customer Statistic
Give you statistics about the articles bought by a customer.
Screenshot
Installation
Manually
- Copy the module into directory and be sure that the name of the module is CustomerStatistic.
- Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
Usage
Activate the module in the module list. A new row will then appear on customer edit pages, giving you statistics about the articles they bought.
Hook
The customer.edit hook is used to attach the statistics to the customer edit page.
Loop
[customer.statistic.article.statistic]
Input arguments
Argument | Description |
---|---|
customer_id | ID of the customer. |
Output arguments
Variable | Description |
---|---|
$PRODUCT_ID | ID of the product |
$REFERENCE | Reference of the product |
$NAME | Name of the product |
$UNIT_PRICE | Price for a single unit of the product |
$QUANTITY | Quantity of this product bought by the customer across all of his orders |
$TOTAL_PRICE | $QUANTITY * $UNIT_PRICE |
Exemple
Additionnal information
A product "Total" with a $PRODUCT_ID of -1 will be added in the loop, with the total turneover for the customer.
All versions of customer-statistic-module with dependencies
PHP Build Version
Package Version
Requires
thelia/installer Version
~1.1
The package thelia/customer-statistic-module contains the following files
Loading the files please wait ....