Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS.php array change


shopgrl

Recommended Posts

One of my customers wrote to say that they were having a problem checking out.

 

They were Canadian. The problem has something to do with the usps.php module. When they check out, they are given a huge array of options for shipping. The array shown on the checkout page is not the same as the array on the php page. I tried to change it, but I got an error and had to replace the original page in order to get it to work again.

 

I'm not sure what to do. I contacted USPS.com but they just said everything was OK on their end.

 

Also, when the customer clicks on one of the shipping options, it defaults to the global express option, which is $50. Then they abandon the cart because they can't get it to change. I only need two options for Canadian or overseas shipping and they are Priority Mail International and First-Class Mail International. I don't need Global or Express.

 

How can I fix it to work?

 

Thank you.

 

Jeanne

 

Here is the list on the usps.php page:

$this->intl_types = array('Global Express Guaranteed',

'Global Express Guaranteed Non-Document Rectangular',

'Global Express Guaranteed Non-Document Non-Rectangular',

'Express Mail International (EMS)',

'Express Mail International (EMS) Flat Rate Envelope',

'Priority Mail International',

'Priority Mail International Flat Rate Envelope',

'Priority Mail International Flat Rate Box',

'First-Class Mail International');

 

And here is the list on the shopping cart checkout page:

Shipping Method

This is currently the only shipping method available to use on this order.

 

United States Postal Service (1 x 0.62lbs) United States Postal Service

Global Express Guaranteed $50.00

Global Express Guaranteed Non-Document Rectangular $50.00

Global Express Guaranteed Non-Document Non-Rectangular $50.00

USPS GXG Envelopes $50.00

Express Mail International (EMS) $30.00

Express Mail International (EMS) Flat-Rate Envelope $25.95

Priority Mail International $19.00

Priority Mail International Flat-Rate Envelope $10.95

Priority Mail International Regular/Medium Flat-Rate Boxes $25.95

Priority Mail International Large Flat-Rate Box $32.95

Priority Mail International Small Flat-Rate Box $10.95

First Class Mail International Large Envelope $3.83

First Class Mail International Package

Link to comment
Share on other sites

One of my customers wrote to say that they were having a problem checking out.

 

They were Canadian. The problem has something to do with the usps.php module. When they check out, they are given a huge array of options for shipping. The array shown on the checkout page is not the same as the array on the php page. I tried to change it, but I got an error and had to replace the original page in order to get it to work again.

 

I'm not sure what to do. I contacted USPS.com but they just said everything was OK on their end.

 

Also, when the customer clicks on one of the shipping options, it defaults to the global express option, which is $50. Then they abandon the cart because they can't get it to change. I only need two options for Canadian or overseas shipping and they are Priority Mail International and First-Class Mail International. I don't need Global or Express.

 

How can I fix it to work?

 

Thank you.

 

Jeanne

 

Here is the list on the usps.php page:

$this->intl_types = array('Global Express Guaranteed',

'Global Express Guaranteed Non-Document Rectangular',

'Global Express Guaranteed Non-Document Non-Rectangular',

'Express Mail International (EMS)',

'Express Mail International (EMS) Flat Rate Envelope',

'Priority Mail International',

'Priority Mail International Flat Rate Envelope',

'Priority Mail International Flat Rate Box',

'First-Class Mail International');

 

And here is the list on the shopping cart checkout page:

Shipping Method

This is currently the only shipping method available to use on this order.

 

United States Postal Service (1 x 0.62lbs) United States Postal Service

Global Express Guaranteed $50.00

Global Express Guaranteed Non-Document Rectangular $50.00

Global Express Guaranteed Non-Document Non-Rectangular $50.00

USPS GXG Envelopes $50.00

Express Mail International (EMS) $30.00

Express Mail International (EMS) Flat-Rate Envelope $25.95

Priority Mail International $19.00

Priority Mail International Flat-Rate Envelope $10.95

Priority Mail International Regular/Medium Flat-Rate Boxes $25.95

Priority Mail International Large Flat-Rate Box $32.95

Priority Mail International Small Flat-Rate Box $10.95

First Class Mail International Large Envelope $3.83

First Class Mail International Package

 

I found this on an earlier post in the forum:

 

I was having the same problem, and got it to work by replacing this in includes/modules/shipping/usps.php:

 

$this->types = array('EXPRESS' => 'Express Mail',

'FIRST CLASS' => 'First-Class Mail',

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post');

 

$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');

 

with this:

 

 

$this->types = array('EXPRESS' => 'Express Mail',

'FIRST CLASS' => 'First-Class Mail',

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post',

'MEDIA' => 'Media Mail',

'BPM' => 'Bound Printed Material',

'LIBRARY' => 'Library'

);

 

$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',

'Global Express Envelopes' => 'USPS GXG Envelopes',

'Express Mail Int' => 'Express Mail International (EMS)',

'Express Mail Int Flat Rate Env' => 'Express Mail International (EMS) Flat-Rate Envelope',

'Priority Mail International' => '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',

'Priority Mail Int Flat Rate Lrg Box' => 'Priority Mail International Large Flat Rate Box',

'First Class Mail Int Lrg Env' => 'First Class Mail International Large Envelope',

'First Class Mail Int Package' => 'First Class Mail International Package',

'First Class Mail Int Letters' => 'First Class Mail International Letters',

'First Class Mail Int Flats' => 'First Class Mail International Flats',

'First Class Mail Int Parcels' => 'First Class Mail International Parcels'

);

 

I tried it and I think it works. I'll have to wait and see if my Canadian and overseas customers have any more problems.

Link to comment
Share on other sites

  • 6 months later...

I tried USPS shipping bombed. I think it is because I need to run and sql file. Does anyone have that?

 

 

I found this on an earlier post in the forum:

 

I was having the same problem, and got it to work by replacing this in includes/modules/shipping/usps.php:

 

$this->types = array('EXPRESS' => 'Express Mail',

'FIRST CLASS' => 'First-Class Mail',

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post');

 

$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');

 

with this:

 

 

$this->types = array('EXPRESS' => 'Express Mail',

'FIRST CLASS' => 'First-Class Mail',

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post',

'MEDIA' => 'Media Mail',

'BPM' => 'Bound Printed Material',

'LIBRARY' => 'Library'

);

 

$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',

'Global Express Envelopes' => 'USPS GXG Envelopes',

'Express Mail Int' => 'Express Mail International (EMS)',

'Express Mail Int Flat Rate Env' => 'Express Mail International (EMS) Flat-Rate Envelope',

'Priority Mail International' => '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',

'Priority Mail Int Flat Rate Lrg Box' => 'Priority Mail International Large Flat Rate Box',

'First Class Mail Int Lrg Env' => 'First Class Mail International Large Envelope',

'First Class Mail Int Package' => 'First Class Mail International Package',

'First Class Mail Int Letters' => 'First Class Mail International Letters',

'First Class Mail Int Flats' => 'First Class Mail International Flats',

'First Class Mail Int Parcels' => 'First Class Mail International Parcels'

);

 

I tried it and I think it works. I'll have to wait and see if my Canadian and overseas customers have any more problems.

Link to comment
Share on other sites

  • 7 months later...

I found this on an earlier post in the forum:

 

I was having the same problem, and got it to work by replacing this in includes/modules/shipping/usps.php:

 

$this->types = array('EXPRESS' => 'Express Mail',

'FIRST CLASS' => 'First-Class Mail',

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post');

 

$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');

 

with this:

 

 

$this->types = array('EXPRESS' => 'Express Mail',

'FIRST CLASS' => 'First-Class Mail',

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post',

'MEDIA' => 'Media Mail',

'BPM' => 'Bound Printed Material',

'LIBRARY' => 'Library'

);

 

$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',

'Global Express Envelopes' => 'USPS GXG Envelopes',

'Express Mail Int' => 'Express Mail International (EMS)',

'Express Mail Int Flat Rate Env' => 'Express Mail International (EMS) Flat-Rate Envelope',

'Priority Mail International' => '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',

'Priority Mail Int Flat Rate Lrg Box' => 'Priority Mail International Large Flat Rate Box',

'First Class Mail Int Lrg Env' => 'First Class Mail International Large Envelope',

'First Class Mail Int Package' => 'First Class Mail International Package',

'First Class Mail Int Letters' => 'First Class Mail International Letters',

'First Class Mail Int Flats' => 'First Class Mail International Flats',

'First Class Mail Int Parcels' => 'First Class Mail International Parcels'

);

 

I tried it and I think it works. I'll have to wait and see if my Canadian and overseas customers have any more problems.

 

Hi guys,

 

I got the same problem. One day 'Priority Main International' shipping method stopped working. I tied to change the value of "intl_types" array entry, but it didn't help.

 

Does anybody know how to fix this problem?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...