osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

error using USPS

This is a discussion on error using USPS within the USPS forums, part of the Shipping Modules category; I get this error during checkout. An error occured with the USPS shipping calculations. If you prefer to use USPS ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion > Shipping Modules > USPS

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-14-2007, 08:02 AM
New Member
 
Join Date: Mar 2007
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
geeknano is on a distinguished road
Default error using USPS

I get this error during checkout.

An error occured with the USPS shipping calculations.
If you prefer to use USPS as your shipping method, please contact the store owner.

I had a site running and I have used this module before with all the correct setting for almost 100 orders before this. Its just that I migrated to a different server and now this module doesnt seem to work.

Please help as I have a live shop and I desperately need help as I am out of all ideas
Thanks
Nilesh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-14-2007, 10:59 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,521
Thanks: 1
Thanked 81 Times in 68 Posts
Rep Power: 10
jpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nice
Default Re: error using USPS

Quote:
Originally Posted by geeknano View Post
I get this error during checkout.

An error occured with the USPS shipping calculations.
If you prefer to use USPS as your shipping method, please contact the store owner.

I had a site running and I have used this module before with all the correct setting for almost 100 orders before this. Its just that I migrated to a different server and now this module doesnt seem to work.

Please help as I have a live shop and I desperately need help as I am out of all ideas
Thanks
Nilesh
Double check your configure.php files - if you moved servers your path may have changed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-14-2007, 05:56 PM
New Member
 
Join Date: Mar 2007
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
geeknano is on a distinguished road
Default Re: error using USPS

thanks you very much for the reply ? do you know what exactly would affect this in configure.php ? i mean what path is related to the shipping module or usps or maybe checkout page ?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-15-2007, 08:07 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,521
Thanks: 1
Thanked 81 Times in 68 Posts
Rep Power: 10
jpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nicejpf is just really nice
Default Re: error using USPS

Possibly:
define('DIR_FS_CATALOG', '....your web servers path to your install....');
and/or
define('HTTP_COOKIE_DOMAIN', 'your domain');
define('HTTPS_COOKIE_DOMAIN', 'your domain-maybe different');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog-maybe different/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog-maybe different/');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-09-2007, 12:55 AM
Lurker
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sting01
Default Re: error using USPS

USPS changed the naming in the 14th oy may 2007, by so you do have to change the file : inlcudes/module/shipping/usps.php


1) near line 54

//$this->intl_types = array('GXG Document' => 'Global Express Guaranteed Document Service',
// 'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
// 'Express' => 'Global Express Mail (EMS)',
// 'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
// 'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
// 'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
// 'Airmail Letter' => 'Airmail Letter Post',
// 'Airmail Parcel' => 'Airmail Parcel Post',
// 'Surface Letter' => 'Economy (Surface) Letter Post',
// 'Surface Post' => 'Economy (Surface) Parcel Post');

//E.Bianchetti as per USPS new system of 14th of may 2007

$this->intl_types = array('Global Express' => 'Global Express Guaranteed',
'Global Express Non-Doc Rect' => 'Global Express Guaranteed Non-Document Rectangular',
'Global Express Non-Doc Non-Rect' => 'Global Express Guaranteed Non-Document Non-Rectangular',
'Express Mail Int' => 'Express Mail International (EMS)',
'Express Mail Int Flat Rate Env' => 'Express Mail International (EMS) Flat Rate Envelope',
'Priority Mail Int' => 'Priority Mail International',
'Priority Mail Int Flat Rate Env' => 'Priority Mail International Flat Rate Envelope',
'Priority Mail Int Flat Rate Box' => 'Priority Mail International Flat Rate Box',
'First-Class Mail Int' => 'First-Class Mail International');




2) near line 154

//tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Int\'l Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES_INTL', 'GXG Document, GXG Non-Document, Express, Priority Lg, Priority Sm, Priority Var, Airmail Letter, Airmail Parcel, Surface Letter, Surface Post', 'Select the international services to be offered:', '6', '15', 'tep_cfg_select_multioption(array(\'GXG Document\', \'GXG Non-Document\', \'Express\', \'Priority Lg\', \'Priority Sm\', \'Priority Var\', \'Airmail Letter\', \'Airmail Parcel\', \'Surface Letter\', \'Surface Post\'), ', now())");

//E.Bianchetti mod as per USPS changes the 14th of may 2007
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Int\'l Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES_INTL', 'Global Express, Global Express Non-Doc Rect, Global Express Non-Doc Non-Rect, Express Mail Int, Express Mail Int Flat Rate Env, Priority Mail Int, Priority Mail Int Flat Rate Env, Priority Mail Int Flat Rate Box, First-Class Mail Int', 'Select the international services to be offered:', '6', '15', 'tep_cfg_select_multioption(array(\'Global Express\', \'Global Express Non-Doc Rect\', \'Global Express Non-Doc Non-Rect\', \'Express Mail Int\', \'Express Mail Int Flat Rate Env\', \'Priority Mail Int\', \'Priority Mail Int Flat Rate Env\', \'Priority Mail Int Flat Rate Box\', \'First-Class Mail Int\'), ', now())");


3) near line 400 (not sure if the file was modified earlier, but I had to do that call to the db to make it work)

$query= "select * from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_USPS_TYPES_INTL'";
$action = mysql_query($query) or die (mysql_error());
while($values=mysql_fetch_array($action)) {
$test_eric = $values['configuration_value'];
}

foreach( explode(", ", $test_eric) as $value ) {
$allowed_types[$value] = $this->intl_types[$value];
}

instead of

foreach( explode(", ",MODULE_SHIPPING_USPS_TYPES_INTL) as $value ) $allowed_types[$value] = $this->intl_types[$value];
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 07-27-2007, 07:01 AM
New Member
 
Join Date: Jul 2007
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
wkdwich is on a distinguished road
Default Re: error using USPS

I am having this problem with a fresh install also.. I have a USPS account working in another shopping cart (not osC).. I can get domestic shipping but not international.. I called USPS and (grr was oon hold forever!) they say since I am already using the account on another cart I am set to production, nothing for them to do..

I altered the file as you suggest here, but when I click install nothing happens at all..

Can someone send me the altered corrected file?? thanks

I need: catalog\includes\modules\shipping\usps.php corrected for the new USPS rules
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 07-27-2007, 11:55 AM
New Member
 
Join Date: Jul 2007
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
wkdwich is on a distinguished road
Default Re: error using USPS

Anyone?? I am ready to open the store except for this error.. please can someone help?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 07-27-2007, 03:42 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 405
Thanks: 3
Thanked 63 Times in 61 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default Re: error using USPS

okay, this is called debugging, but what is USPS returning? For instance,m when I was having a similar problem with UPS I checked and found that I had a max weight that was larger than UPSs max weight and the actual message being returned by UPS told me what the problem was.

so the questions in debugging in order are:
1) am I getting to the production server?
2) what is the production server returning as a response?

If you aren't even getting to the production server, then the odds are that you don't have something configured properly.

If you are getting there, then they will tell you what the problems are.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 07-27-2007, 08:38 PM
New Member
 
Join Date: Jul 2007
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
wkdwich is on a distinguished road
Default Re: error using USPS

I did get it to work this morning, and got so involved getting things ready to open the store I forgot to respond.. here is what I accomplished:

performed sql update
Code:
UPDATE `configuration` SET `set_function` = 'tep_cfg_select_multioption(array(''Global Express'', ''Global Express Non-Doc Rect'', ''Global Express Non-Doc Non-Rect'', ''Express Mail Int'', ''Express Mail Int Flat Rate Env'', ''Priority Mail Int'', ''Priority Mail Int Flat Rate Env'', ''Priority Mail Int Flat Rate Box'', ''First-Class Mail Int''),' WHERE `configuration_key` ='MODULE_SHIPPING_USPS_TYPES_INTL' LIMIT 1 ;
uninstalled the USPS module

uploaded bkpie's copy from this post:
Going Postal

and reinstalled.. eveyrthing works fine now thanks for the response
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 07-29-2007, 06:43 PM
Lurker
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sting01
Default Re: error using USPS

You right, in the fix I posted I simply forgot the SQL. Anyway it was a fix I did in 10 mn for my ex employer (the new coder is not able to create something like that lol), so I simply worked fast and when I posted I forgot that.

On the other hand, Osc = Free sofware. My phylosophy is anyone who use free sofware have to learn a bit about it (same as a race pilot know how the car is working), and certainly not rely on : "Send me the files modified". It would be a lazy attitude.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
USPS Methods michael_s New osCommerce Contributions 0 01-23-2007 09:11 AM
USPS trouble anyone? dougnyc osCMax v1.7 Discussion 1 12-05-2003 10:32 PM
USPS Shipping - please help "An error occured with the thasin osCommerce 2.2 Modification Help 1 09-15-2003 06:09 AM
USPS Problems XTSCrankN osCommerce 2.2 Installation Help 1 02-20-2003 07:51 AM
error message with usps Anonymous osCommerce 2.2 Modification Help 0 12-15-2002 05:04 PM


All times are GMT -8. The time now is 12:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax