Forums / Built-in Shipping and Payment Modules / USPS Rate and API changes May 2011

USPS Rate and API changes May 2011

Started by edadk on 17 Dec 2010, 9:00 PM · Views: 15,292

Results 21 to 40 of 43
6 Dec 2011, 8:57 PM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

USPS Rate and API changes May 2011

Edit the shipping module:
/includes/modules/shipping/usps.php

Find this line of code:

          $cost = preg_replace('/[^0-9.]/', '',  $cost);

Beneath it, add this line of code:

echo 'USPS: ' . $type . '<br>';          

Look to see what comes up on the ones that are $2-$3.00 too low ...

What are they?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Dec 2011, 9:26 PM
#22
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

hmmm. That actually lowered the First Class rate instead of raising the Express rate.

6 Dec 2011, 9:28 PM
#23
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

No. Sorry it didn't change anything except it made all my fonts larger. The first class stayed the same as well. Any other ideas?

6 Dec 2011, 9:30 PM
#24
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

It should not do anything other than echo the shipping types ...

Check and make sure that you have:

1 installed the January 2, 2011 version C from post #26:
http://www.zen-cart.com/forum/showthread.php?t=171314

2 You edited and saved your existing data

3 You did a REMOVE, INSTALL and then re-configured it

Then, go to Tools ... Developers Tool Kit ... and in the bottom input box do a search on:
USPS GXG Envelopes

select Catalog ... and click SEARCH ... what comes up?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Dec 2011, 9:36 PM
#25
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

Yes I uninstalled the old - installed the new as was instructed and reconfigured

In developer tool kit it brings up usps.php and this info

Line #117 : 'Global Express Envelopes' => 'USPS GXG Envelopes',

Line #138 : 'USPS GXG Envelopes' => 'USPS GXG Envelopes**', // ID="12" 'USPS GXG Envelopes'

Line #325 : 'Global Express, Global Express Non-Doc Rect, Global Express Non-Doc Non-Rect, USPS GXG Envelopes, Express Mail Int, Express Mail Int Flat Rate Env, Express Mail Int Legal, Priority Mail International, Priority Mail Int Flat Rate Env, Priority Mail Int Flat Rate Small Box, Priority Mail Int Flat Rate Med Box, Priority Mail Int Flat Rate Lrg Box, Priority Mail Int DVD, Priority Mail Int Lrg Video, Priority Mail Int Legal Flat Rate Env, Priority Mail Int Padded Flat Rate Env, Priority Mail Int Gift Card Flat Rate Env, Priority Mail Int Small Flat Rate Env, First Class Mail Int Lrg Env, First Class Mail Int Package, First Class Mail Int Letter',

Line #327 : array('Global Express', 'Global Express Non-Doc Rect', 'Global Express Non-Doc Non-Rect', 'USPS GXG Envelopes', 'Express Mail Int', 'Express Mail Int Flat Rate Env', 'Express Mail Int Legal', 'Priority Mail International', 'Priority Mail Int Flat Rate Env', 'Priority Mail Int Flat Rate Small Box', 'Priority Mail Int Flat Rate Med Box', 'Priority Mail Int Flat Rate Lrg Box', 'Priority Mail Int DVD', 'Priority Mail Int Lrg Video', 'Priority Mail Int Legal Flat Rate Env', 'Priority Mail Int Padded Flat Rate Env', 'Priority Mail Int Gift Card Flat Rate Env', 'Priority Mail Int Small Flat Rate Env', 'First Class Mail Int Lrg Env', 'First Class Mail Int Package', 'First Class Mail Int Letter'), ', now())");

6 Dec 2011, 9:44 PM
#26
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

You appear to have the correct module installed ...

Meanwhile, the code I gave you was just to echo out the USPS types, it would not alter the prices in any way ...

Which ones are you trying to raise the prices on?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Dec 2011, 11:23 PM
#28
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

What is the Ship From and Ship To that you are testing with?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Dec 2011, 11:46 PM
#29
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

from 44272 to 41017

I just noticed that in tare weight I have 10:0 but I have changed this several times to 0:0 and others which didn't change anything.

6 Dec 2011, 11:56 PM
#30
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

I believe you are perhaps confused ...

You have a Product that is 0.065lbs that you are shipping from:
44272 to 41017

Your site says:

United States Postal Service (1 x 0.07lbs) (Express Mail (1 - 2 days - see note below)) $16.15
United States Postal Service (1 x 0.07lbs) (First-Class Mail (2 - 5 days - see note below)) $1.71
United States Postal Service (1 x 0.07lbs) (Priority Mail (2 - 3 days - see note below)) $5.15

USPS site says:

Express Mail®More info about Express Mail®
Fri, Dec 9 by 12 PM $16.15

Priority Mail®More info about Priority Mail®
Sat, Dec 10 $5.15

First-Class Mail® PackageMore info about First-Class Mail® Package
Sat, Dec 10 $1.71

This looks pretty identical to me ...

Are you sure you are entering the weight as:
0.065 pounds

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Dec 2011, 12:05 AM
#31
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

Yes in Products Shipping Weight: 0.065 (no lbs behind it)

7 Dec 2011, 12:27 AM
#32
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

Weight is entered into Zen Cart in pounds ...

If you have the Product Weight entered as:
0.065

then that is entered as:
0.065 pounds

which is:
1.040 oz

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Dec 2011, 12:40 AM
#33
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

Ok. I had changed the weights at one point but that made the Express Mail a $1 or so more than usps. So if I change my weights should it match usps?

7 Dec 2011, 12:55 AM
#34
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

If you change the weights to match the weights used on USPS you should get the same quote ...

Just like right now you are using 0.065lbs and get the same prices at USPS for 0.065lbs ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Dec 2011, 1:01 AM
#35
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

Ok thanks very much for all your help.

7 Dec 2011, 5:07 PM
#37
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

I am back. After a good nights sleep and lots of coffee this a.m. it is all clear to me now. ha.

USPS weight and rates are matching but client uses Express Mail Flat Rate Envelope which through usps is $18.30. There isn't an option on Domestic to choose Express Mail Flat Rate Envelope. If I could figure out how to do this, the client would be happy. Is there anyway to add Express Mail Flat Rate Envelope to domestic? Thanks.

7 Dec 2011, 5:09 PM
#38
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

You might edit the USPS shipping module and look for this code:

          //EXPRESS MAIL OPTIONS
          if ($key == 'EXPRESS'){
            $this->container = '';  // Blank, or Flate Rate Envelope
          }

and see if that accomplishes what you are trying to do ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Dec 2011, 5:22 PM
#39
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: USPS Rate and API changes May 2011

Darn I was hoping that would work but it doesn't. ugh I even tried adding Express Mail Flat Rate Envelope. Any other ideas?

7 Dec 2011, 5:35 PM
#40
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Rate and API changes May 2011

What are you testing on the:
Ship From
Ship To
Order Weight

What are you seeing on your Zen Cart Site?

What are you seeing on the USPS site?

What do you think you should be seeing on your Zen Cart Site?

What are all your settings on the Configuration ... Shipping/Packaging ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!