| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
A sales report based on users | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
A sales report based on users
With this mod you will get a sales report based on users with their referer and brief order information. It will also list new registered users with no order for sales department to follow up.
Create include/sales_report.php and place the code below: Code:
Create admin/sales_report.php with the code below: Code:
Open include/func.php and add the following code somewhere: Code:
Create skin1/mow/sales_report.tpl Code:
Create skin1/mow/sales_report_table.tpl Code:
Create skin1/mow/sales_reports_user_orders.tpl Code:
Open skin1/common_tenplates.tpl and add the following condition somewhere in the if condition: Code:
Open skin1/admin/menu.tpl and add the following code before {/capture} tag: Code:
Finally login to admin area and click on "Sales Report" or browse admin/sales_report.php http://minaw.com/files/sales_report.jpg
__________________
Jay S Xcart 4.1.3 & Mysql 5.0.20 Xcart 4.0.17 & Mysql 4.1 Apache 2.0 & Linux Whitebox 3 |
|||||||
#2
|
|||||||
|
|||||||
how do we run this file?
__________________
version 4.0.17 |
|||||||
#3
|
|||||||
|
|||||||
when i manually run it i get a blank screen
__________________
version 4.0.17 |
|||||||
#4
|
|||||||
|
|||||||
You need to create mow folder under skin1 along with 3 .tpl files.
Create your .php file under admin folder along with included .php file under include folder. You also edit the admin menu to include a link. That's it.
__________________
Jay S Xcart 4.1.3 & Mysql 5.0.20 Xcart 4.0.17 & Mysql 4.1 Apache 2.0 & Linux Whitebox 3 |
|||||||
#5
|
|||||||
|
|||||||
a link to which .php file?
__________________
version 4.0.17 |
|||||||
#6
|
|||||||
|
|||||||
just get a blank page.
copied yoru code exactly
__________________
version 4.0.17 |
|||||||
#7
|
|||||||
|
|||||||
http://yourwebsite.com/admin/sales_report.php after you login to admin area.
__________________
Jay S Xcart 4.1.3 & Mysql 5.0.20 Xcart 4.0.17 & Mysql 4.1 Apache 2.0 & Linux Whitebox 3 |
|||||||
#8
|
|||||||
|
|||||||
hmmm, totally confused. still just blank pages
im not sure where the problem is coming up, as i am not that sql savvy. any ideas?
__________________
version 4.0.17 |
|||||||
#9
|
|||||||
|
|||||||
I'm sorry, but I think I forgot to mention one of the important things:
Open skin1/common_tenplates.tpl and add the following condition somwhere in the if condition: {elseif $main eq "sales_report"} {include file="mow/sales_report.tpl"}
__________________
Jay S Xcart 4.1.3 & Mysql 5.0.20 Xcart 4.0.17 & Mysql 4.1 Apache 2.0 & Linux Whitebox 3 |
|||||||
#10
|
|||||||
|
|||||||
Hi,
I get the following error when executing the script: Fatal error: Call to undefined function: create_array() in /mysite/include/sales_report.php on line 59 the script stops at this line: $smarty->assign("data", create_array($query)); any ideas what might be causing this? thank you Olaf |
|||||||
|
|||
X-Cart forums © 2001-2020
|