Fatal error: Class ‘httpClient’ not found in /home/xxxxxxx/public_html/myshop/includes/modules/shipping/ups.php on line 265

Posted by admin on October 30, 2009 under oScommerce Issues | Be the First to Comment

Fatal error: Class ‘httpClient’ not found in /home/xxxxxx/public_HTML/catalog/includes/modules/shipping/ups.php on line 265
To solve this issue in ups module

Find this at line 265:

$http = new httpClient();
if ($http->Connect(‘www.ups.com’, 80)) {
$http->addHeader(‘Host’, ‘www.ups.com’);
$http->addHeader(‘User-Agent’, ‘osCommerce’);
$http->addHeader(‘Connection’, ‘Close’);

And replace with this:

if (!class_exists(‘httpClient’)) {
include(‘includes/classes/http_client.php’);
}
$http = new httpClient();
if ($http->Connect(‘www.ups.com’, 80)) {
$http->addHeader(‘Host’, ‘www.ups.com’);
$http->addHeader(‘User-Agent’, ‘osCommerce’);
$http->addHeader(‘Connection’, ‘Close’);

Change the current order number in osCommerce

Posted by admin on October 8, 2009 under Uncategorized | Be the First to Comment

ALTER TABLE ordersĀ  AUTO_INCREMENT =new_number_here