Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Sales Report v1.2


gdfwilliams

Recommended Posts

A new addition to the NEW contributions section:

 

http://www.oscommerce.com/community/contributions,524

 

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

SALES REPORT v1.2

12/21/2002

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

 

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Summary:

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

 

A sales report utility that includes Daily, Weekly, Monthly and Yearly sales reports,

including Total # of Orders, Avg. Order Amount, Total Sales, % Variance from previous

hours/days/weeks/months.

 

Daily/Weekly/Hourly reports also include graphs that track total sales. Daily report

uses a stacked bar graph to include average order amount.

 

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Recent Improvements:

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

 

v1.2 - Fix for some graph layout issues

v1.1 - Fix to Install file

v1.0 - Hourly reports, dynamic graphs, improved navigation, minor tweaks

v.8 - Minor fix in Install file

v.7 - Additions made to language files

v.6 - Moved all the logic into class file sales_report.php in admin/includes/classes/

 

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

To Do:

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

 

-> Improved navigation

-> Improved export options (CSV and Print)

-> User input for date range of reports

-> Additional sales data to include categories/subcategories, specials

 

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Other Info:

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

 

Screenshot of Daily report:

 

sales_report.gif

 

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Development Team:

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

 

* Charly Wilhelm

* Greg Williams

Link to comment
Share on other sites

Well, I have installed this contribution, however, it doesn't seem to work.

 

There are no graphs, not all of the table headers are displayed correctly, links to the daily, weekly, monthly, and yearly reports seem to be messed up, and the numbers are all wrong.

 

I installed this contribution twice, and made sure that all of the directions were followed properly.

 

Anyone else having problems with this contribution?

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Ah, I found the issue.

 

In the Application_Top in Admin, the foowing definition should be

 

define('FILENAME_STATS_SALES_REPORT', 'stats_sales_report.php');

 

NOT

 

define('FILENAME_STATS_SALES_REPORT', 'sales_stats_report.php');

 

The installation instructions are wrong.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

  • 3 weeks later...

Greetings

 

I'm trying to use your contribution, but I'm getting the following error:

 

Fatal error: Cannot redeclare tep_db_connect() in c:apachehtdocsnew-zealadminincludesfunctionsdatabase.php on line 13

 

any idea what i'm doing wrong?

Link to comment
Share on other sites

Well I have had this contribution installed for some time now, and although I think it has alot of potential, it is currently not practical.

 

It the totals for all sales, whether they are "paypal pending", "cancelled" or "Shipped".

 

It does not offer a way to diferienciate, and all orders of all statuses are thrown into the same bucket.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

I have just installed this contibution - worked first time. The only way I could see of accessing last year's data was daily. The weekly and monthly sales data always start at the beginning of the year and don't have a 'previous' button. How can this be changed?

Link to comment
Share on other sites

Just installed it on 2.2 that I set up couple of days ago...

 

Look very promissing only I get the same error as Bapha :cry: :

 

Fatal error: Cannot redeclare tep_db_connect() in /home/httpd/vhosts/xxxxxx.com/httpdocs/shop/admin/includes/functions/database.php on line 13

 

I am pretty new to all this, any advice where I should start looking is greatly appreciated??

 

Thanks!

Link to comment
Share on other sites

hmmm i must have a weird issue as i only get a graph on the daily section. The other sections judt list a table which spreads right across the page.

 

Anyone have any ideas as to what would be causing this??

Link to comment
Share on other sites

Anton,

 

Fatal error: Cannot redeclare tep_db_connect() in /home/httpd/vhosts/xxxxxxxx.com/httpdocs/shop/admin/includes/functions/database.php on line 13

 

Did you found out why you also got this error??

 

Anyone else came accross this problem??

 

:?: :?:

 

Thanks...

Jean

Link to comment
Share on other sites

  • 3 weeks later...

I get the following error on istall.

Any ideas please

 

1146 - Table 'catalog.TABLE_ORDERS_TOTAL' doesn't exist

 

select sum(ot.value) as value, avg(ot.value) as avg, count(ot.value) as count FROM TABLE_ORDERS_TOTAL ot, orders o WHERE ot.orders_id = o.orders_id and ot.class = 'ot_subtotal' AND o.date_purchased >= '2003-02-09T00:00:00' AND o.date_purchased < '2003-02-10T00:00:00'

 

[TEP STOP]

 

 

Thanks in advance

Gary

Link to comment
Share on other sites

  • 2 weeks later...

after installing this contribution i started to have below error everytime i try to add a new product to the catalog. I am using V2.2. I checked the the general.php and english.php but i haven seen any sysntax error where am i doing wrong?

Warning: Cannot add header information - headers already sent by (output started at /home/quickly/public_html/shop/admin/includes/languages/english.php:277) in /home/quickly/public_html/shop/admin/includes/functions/general.php on line 18

I can't type a trick like i can type.

Link to comment
Share on other sites

As I've said, the main problem with this mod is that is doesn't break out the sales by order status. Therefore, a 'Cancelled' order is summed in with a 'Shipped' order.

 

Obviously, until this is fixed, this makes this contribution useless.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

As I've said, the main problem with this mod is that is doesn't break out the sales by order status. Therefore, a 'Cancelled' order is summed in with a 'Shipped' order.  

 

Obviously, until this is fixed, this makes this contribution useless.

 

hmm I didn't even think to create a "cancelled" status for orders... there isn't one in by default, which may be why this contribution doesn't use it. I'm using v1.5 and I modded it the other day to exclude orders that were placed on my test accounts. It was very simple to change and having it exclude "cancelled" orders should be equally as simple.

 

Also in the upper right corner of the Sales/Tax page is a drop down box wehre you can select which order status you would like shown... so you can have ALL shown, or just shipped... but u can't select more than one, but again that would be easy to change to maybe checkboxes so that you can do a combination of statuses (for example companies running on cash basis, would not want to see the order added into total until it was shipped and companies running on acrual basis would want it recognized in the report if it was pending, processing, or shipped)

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Link to comment
Share on other sites

Also in the upper right corner of the Sales/Tax page is a drop down box wehre you can select which order status you would like shown..

 

I'm not sure we're talking about the same comtribution here. Either that or this has been added since I've installed it.

 

There are two sales report contributions. 1 is a Monthly Sales/Tax contribution, and then there is this one, the Sales Report. The Monthly Sales/Tax contribution does allow for filtering on the order status. The version of the Sales Repot that I have does not.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Also in the upper right corner of the Sales/Tax page is a drop down box wehre you can select which order status you would like shown..

 

I'm not sure we're talking about the same comtribution here. Either that or this has been added since I've installed it.

 

There are two sales report contributions. 1 is a Monthly Sales/Tax contribution, and then there is this one, the Sales Report. The Monthly Sales/Tax contribution does allow for filtering on the order status. The version of the Sales Repot that I have does not.

 

yeah it does... the newest monthly/sales tax is version 1.5 and allows for filtering the order status:

screen_sales.jpg

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...