You got no help?
I had the same problem because we use a prefix to our SQL table names. That is, our orders table is actually called pre_orders where pre_ is the table prefix.
To fix this chage from hard coded table names to zen cart variable names in print_ups_xml.php. So change line 44 in print_ups_xml.php from:
Code:
$query = mysql_query("SELECT * FROM `products` wHERE `products_id` = ".$order->products[$i]['id']. " LIMIT 1");
to:
Code:
$query = mysql_query("SELECT * FROM ".TABLE_PRODUCTS." WHERE `products_id` = ".$order->products[$i]['id']. " LIMIT 1");
note that the tabled called products was changed to TABLE_PRODUCTS.
You also need to make a similar change to line 52. From:
Code:
$query = mysql_query("SELECT `shipping_method` FROM `orders` WHERE `orders_id` = ".$oID." LIMIT 1");
To:
Code:
$query = mysql_query("SELECT `shipping_method` FROM ".TABLE_ORDERS." WHERE `orders_id` = ".$oID." LIMIT 1");
I hope that helps anyone else who is stumbling....
Chris