| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Custom Sales Reports by Product (item total and by qty) | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
The link above won't work anymore since I deleted the file and moved it to a password protected area. I took lines 2-5 out, but still get the same error:
Code:
__________________
~ Andrea Beight |
|||||||||
#12
|
|||||||
|
|||||||
Try replacing the first line with this (add just php)
Code:
I think it's a PHP setting with your server. We'll work it out...
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
#13
|
|||||||
|
|||||||
Quote:
Anyone else want to chime in if you've seen this error before? I can only find these two links on PHP bugs, but can't really think up a solution: http://bugs.php.net/bug.php?id=5387 http://bugs.php.net/bug.php?id=5448
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
#14
|
|||||||||
|
|||||||||
LOL... well that was a step in the right direction. Now I only get the bottom two lines of the error. Thanks for trying to figure it out. Don't kill youself over it though.
__________________
~ Andrea Beight |
|||||||||
#15
|
|||||||
|
|||||||
Try doing a search and replace:
Find "<?" Replace with "<?php" See if that does anything.
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
#16
|
|||||||
|
|||||||
I did some more reading and it may be that 'magic_quotes_gpc' it turned OFF in your PHP settings. Let me know if you need help finding out how to check this.
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
#17
|
|||||||
|
|||||||
This picks up failed attempts as well, (which in my case really skews the order qty) is there anyway to have it only accept processed orders?
Thanks, Eduardo. |
|||||||
#18
|
|||||||
|
|||||||
This can easily be accomplished by adding a few qualifying statements to the SQL query on Line 110 (or thereabouts): Delete the line where it starts with "$sql = "SELECT tblproducts..." and replace it with the following:
Code:
Notice that I added two statements: Code:
This makes sure it only counts orders that are Complete or Processed. I have tested it on my side and it works fine. Let me know if this helps or not.
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
#19
|
|||||||
|
|||||||
I forgot to mention another nice feature of this report. If you noticed, the X-Cart pre-packaged orders reports shows the total gross/paid amounts for the order date range you selected. Unfortunately, it adds shipping costs as well, so you are truly not generating the amount of revenue that x-cart claims you are. This report ONLY takes into account the product prices, not shipping, so you may notice a difference between this report and the reports that x-cart generates (this statement is valid up to version 3.4.14).
Just an FYI.
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
#20
|
|||||||
|
|||||||
Quote:
I am using 3.3.3 and the second sql didnot work. any help idea? |
|||||||
|
|||
X-Cart forums © 2001-2020
|