Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hi All,

I'm really in a mess right now, I have installed USPS_Methods_5.2.0_RateV4IntlRateV2 on an old 2.2 shopping cart

my boss has asked me to use USPS for Domestic as well as International, and it works fine for International but when I try to use a Domestic address I get this error;

 

An error occured with the USPS shipping calculations.

If you would like to use USPS as your shipping method, please contact the store owner.

 

The Site is Live and I'm not that good at troubleshooting this so I was hoping I could get some help, it's my birthday today and the last thing I want is my boss yelling at me cause I can't figure this out so PLEASE can anyone PLEASSE HELP ME?

 

Thank you so much,

 

Kelly

Edited by kelly236
Posted

I've tried to install a newer version of the USPS and I've run into a problem it says to ;

 

catalog/admin/modules.php

 

Find somewhere around line 43:

in osc 2.2

 

if (tep_not_null($action)) {

switch ($action) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

 

but what I have is;

 

if (tep_not_null($action)) {

switch ($action) {

case 'save':

foreach($_POST['configuration'] as $key => $value) {

 

and it's telling me to add this code;

 

if( is_array( $value ) ){

$value = implode( ", ", $value);

$value = ereg_replace (", --none--", "", $value);

}

 

but could that be an issue?

 

I apologize to everyone here for my lack of knowledge, and I would really appreciate any help or direction,,

 

Thank you

 

Kelly

Posted

Kelly,

 

That's fine, just add the new array under the reference code. The exact code of the reference is not a concern.

 

 

 

Chris

Posted

Thank you so very much, Chris, I can't tell you how much I appreciate your time, I'm trying to install this but I keep getting an error when trying to use the domestic shipping, it works great on International but I just don't know why it won't work on domestic

 

error:

 

An error occured with the USPS shipping calculations.

If you would like to use USPS as your shipping method, please contact the store owner.

 

Again, THANK YOU SO MUCH for your help!!

 

Kelly

Posted

Kelly,

 

Did you set your zip code in admin>configuration> packaging and shipping ?

 

Did you enter your CITY in the code edits for USPS methods ?

 

Did you sign up for domestic shipping using the methods you have chosen in the module ? (did you open your USPS account and choose the methods you are trying to enable in the osCommerce store?)

 

 

Chris

Posted

Congratulations Kelly, I am happy to hear you got it working.

 

 

 

 

 

Chris

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...