Guest Posted September 7, 2008 Share Posted September 7, 2008 hi thats a useful addon, moreover one suggestion! is it possible to build by products like a orders_tracking_products.php ? Quote Link to comment Share on other sites More sharing options...
chrish123 Posted March 3, 2009 Share Posted March 3, 2009 Hi, has anyone figured out the bug in where no orders for today have been placed, so the field should be 0 but instead is something like £34,242!? Quote Link to comment Share on other sites More sharing options...
pdcelec Posted January 18, 2011 Share Posted January 18, 2011 Installed this on 2.3.1 and I am getting this error 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rib ' and date_purchased >= '2011-1-01 00:00:00' and date_purchased <= '2011-12-' at line 1 select count(*) as count from orders where customers_state = 'Ma'rib ' and date_purchased >= '2011-1-01 00:00:00' and date_purchased <= '2011-12-31 11:59:59' Quote Link to comment Share on other sites More sharing options...
lorem_ipsum Posted January 19, 2011 Share Posted January 19, 2011 Hi, I had the same problem. The problem is around the customers_state, if u have some states with 1 quote, the sql request sux. You need to add addslashes function for the variable $customers_location['zone_name']. In the file order_tracking.php line 1028 Change : $location_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where customers_state = '". $customers_location['zone_name'] ." ' and date_purchased >= '$year-$startmonth-01 00:00:00' and date_purchased <= '$year-$endmonth-31 11:59:59' "); With : $location_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where customers_state = '". addslashes($customers_location['zone_name']) ." ' and date_purchased >= '$year-$startmonth-01 00:00:00' and date_purchased <= '$year-$endmonth-31 11:59:59' "); Godd luck Quote Link to comment Share on other sites More sharing options...
♥stubbsy Posted April 15, 2011 Share Posted April 15, 2011 Hi, I'm trying to get the Orders by Zone file to order by count (number of orders) but whatever I try doesnt work. I've tried adding ORDER BY count DESC to the query but no luck. I cant see why it wouldnt work. $location_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where customers_state = '". $customers_location['zone_name'] ." ' and date_purchased >= '$year-$startmonth-01 00:00:00' and date_purchased <= '$year-$endmonth-31 11:59:59' ORDER BY count DESC"); any ideas? Thanks Dave Quote Link to comment Share on other sites More sharing options...
japanlover Posted May 3, 2011 Share Posted May 3, 2011 Hello, I installed the contrib on 2.3.1 and it seems it is working flawless (hope it will ^_^ ), but since I use it for zones other than US, I get some "xxx" and the end of the ZIP codes. In Italy we got 5 digits for ZIP so I wonder if it is possible to have the code fully shown, since it is a major requirement for me to know what I ship to specific ZIPs. Thank you. Quote Link to comment Share on other sites More sharing options...
operaguy59 Posted May 23, 2011 Share Posted May 23, 2011 I have installed Order Tracker V3.0 and am having trouble formatting the reports.php file. Has anyone been able to successfully edit this file? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2012 Share Posted June 10, 2012 Hi is this forum still active as installed the add on and love but just want to change the date format under sales summary from mm-dd to dd-mm Any ideas any one Thank you Ian Quote Link to comment Share on other sites More sharing options...
Carlitos12 Posted August 30, 2017 Share Posted August 30, 2017 hello I have follow all the instructions, but I get this error: Deprecated: mysql_query(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\xampp\htdocs\oscommerce-2.3.3.4\catalog\admin\orders_tracking.php on line 193Warning: mysql_query(): Access denied for user ''@'localhost' (using password: NO) in C:\xampp\htdocs\oscommerce-2.3.3.4\catalog\admin\orders_tracking.php on line 193Warning: mysql_query(): A link to the server could not be established in C:\xampp\htdocs\oscommerce-2.3.3.4\catalog\admin\orders_tracking.php on line 193 Query failed : Access denied for user ''@'localhost' (using password: NO) Help me please. thanks Quote Link to comment Share on other sites More sharing options...
♥frankl Posted September 7, 2017 Share Posted September 7, 2017 (edited) @Carlitos12 Replace instances of mysql_query with tep_db_query That may not be the only thing wrong with the code in this contribution though. Edited September 7, 2017 by frankl Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
Carlitos Posted September 10, 2017 Share Posted September 10, 2017 Thank you. It worked. I Think I installed the old version. But with this version : oscom-order-tracking-v3-0-for-oscommerce-v2-3-usXv7-1TOfJ It works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.