This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:zencartmods:inventory_report_5.html [2011/08/29 19:43] daigo created |
tutorials:zencartmods:inventory_report_5.html [2011/08/29 19:46] daigo |
||
---|---|---|---|
Line 4: | Line 4: | ||
Here's one of our functions, which simply makes a giant array of how many of each product we've sold in the past week, 2 weeks, 4 kees, 6 weeks, etc. | Here's one of our functions, which simply makes a giant array of how many of each product we've sold in the past week, 2 weeks, 4 kees, 6 weeks, etc. | ||
Save this into a file called **admin/includes/functions/extra_functions/stats_functions.php** | Save this into a file called **admin/includes/functions/extra_functions/stats_functions.php** | ||
- | <code> | + | <code php> |
<?php | <?php | ||
function getSalesStats() | function getSalesStats() | ||
Line 39: | Line 39: | ||
Here's an example of a report generating page using this custom created function | Here's an example of a report generating page using this custom created function | ||
+ | {{:tutorials:zencartmods:inventory_report.php.zip|}} | ||