Jump to content
bad_lemming

[Contribution] - USPS Methods

Recommended Posts

I'm running OSC v2.2 RC2 and USPS 5.2 (installed1/22/11). Sometime between Jan 2, 2012 and Jan 20, 2012, I noticed that it was no longer including the 19 cents delivery confirmation fee on my customers' orders. When I check my OSC dashboard, "Domestic Delivery Confirmation

Automatically charge Delivery Confirmation for first class and parcel ($0.19)?" is still set to true. Can anyone help? Thanks!!

Share this post


Link to post
Share on other sites

I'm in the same boat of no First-Class Domestic appearing with v6.1a. Everything else works great.

 

Has anyone found a solution for this other than downgrading to 5.22?

 

Thanks,

PHRoG

 

in .../includes/modules/shipping/usps.php - replace the arrays that define the shipping types with the following:

(Proper values were determined by running the USPS_methods_utility.php that comes with the 6.1a version)

 

After replacing the arrays, remove the module by clicking the rex "Remove" button, then reinstall. You will have to re-enter your User ID and all settings, so be sure you have at least your User ID written down.

 

I'm not sure what changed, but I replaced all four arrays with the output from USPS_methods_utility.php and I get First Class offered now. Also, be sure to check your package tare weight under "Configuration -> Shipping/Packaging"

 

$this->types = array(
  'Express Mail' => 'Express Mail<sup>®</sup>',
  'Express Mail Hold For Pickup' => 'Express Mail<sup>®</sup> Hold For Pickup',
  'Express Mail Flat Rate Boxes' => 'Express Mail<sup>®</sup> Flat Rate Boxes',
  'Express Mail Flat Rate Boxes Hold For Pickup' => 'Express Mail<sup>®</sup> Flat Rate Boxes Hold For Pickup',
  'Express Mail Flat Rate Envelope' => 'Express Mail<sup>®</sup> Flat Rate Envelope',
  'Express Mail Flat Rate Envelope Hold For Pickup' => 'Express Mail<sup>®</sup> Flat Rate Envelope Hold For Pickup',
  'Express Mail Legal Flat Rate Envelope' => 'Express Mail<sup>®</sup> Legal Flat Rate Envelope',
  'Express Mail Legal Flat Rate Envelope Hold For Pickup' => 'Express Mail<sup>®</sup> Legal Flat Rate Envelope Hold For Pickup',
  'Priority Mail' => 'Priority Mail<sup>®</sup>',
  'Priority Mail Hold For Pickup' => 'Priority Mail<sup>®</sup> Hold For Pickup',
  'Priority Mail Large Flat Rate Box' => 'Priority Mail<sup>®</sup> Large Flat Rate Box',
  'Priority Mail Large Flat Rate Box Hold For Pickup' => 'Priority Mail<sup>®</sup> Large Flat Rate Box Hold For Pickup',
  'Priority Mail Medium Flat Rate Box' => 'Priority Mail<sup>®</sup> Medium Flat Rate Box',
  'Priority Mail Medium Flat Rate Box Hold For Pickup' => 'Priority Mail<sup>®</sup> Medium Flat Rate Box Hold For Pickup',
  'Priority Mail Small Flat Rate Box' => 'Priority Mail<sup>®</sup> Small Flat Rate Box',
  'Priority Mail Small Flat Rate Box Hold For Pickup' => 'Priority Mail<sup>®</sup> Small Flat Rate Box Hold For Pickup',
  'Priority Mail Regional Rate Box A' => 'Priority Mail<sup>®</sup> Regional Rate Box A',
  'Priority Mail Regional Rate Box A Hold For Pickup' => 'Priority Mail<sup>®</sup> Regional Rate Box A Hold For Pickup',
  'Priority Mail Regional Rate Box B' => 'Priority Mail<sup>®</sup> Regional Rate Box B',
  'Priority Mail Regional Rate Box B Hold For Pickup' => 'Priority Mail<sup>®</sup> Regional Rate Box B Hold For Pickup',
  'Priority Mail Regional Rate Box C' => 'Priority Mail<sup>®</sup> Regional Rate Box C',
  'Priority Mail Regional Rate Box C Hold For Pickup' => 'Priority Mail<sup>®</sup> Regional Rate Box C Hold For Pickup',
  'Priority Mail Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Flat Rate Envelope',
  'Priority Mail Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Flat Rate Envelope Hold For Pickup',
  'Priority Mail Legal Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Legal Flat Rate Envelope',
  'Priority Mail Legal Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Legal Flat Rate Envelope Hold For Pickup',
  'Priority Mail Padded Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Padded Flat Rate Envelope',
  'Priority Mail Padded Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Padded Flat Rate Envelope Hold For Pickup',
  'Priority Mail Gift Card Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Gift Card Flat Rate Envelope',
  'Priority Mail Gift Card Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Gift Card Flat Rate Envelope Hold For Pickup',
  'Priority Mail Small Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Small Flat Rate Envelope',
  'Priority Mail Small Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Small Flat Rate Envelope Hold For Pickup',
  'Priority Mail Window Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Window Flat Rate Envelope',
  'Priority Mail Window Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Window Flat Rate Envelope Hold For Pickup',
  'First-Class Mail Parcel' => 'First-Class Mail<sup>®</sup> Parcel',
  'First-Class Mail Large Envelope' => 'First-Class Mail<sup>®</sup> Large Envelope',
  'First-Class Mail Letter' => 'First-Class Mail<sup>®</sup> Letter',
  'First-Class Package Service' => 'First-Class<sup>™</sup> Package Service',
  'First-Class Package Service Hold For Pickup' => 'First-Class<sup>™</sup> Package Service Hold For Pickup',
  'Parcel Post' => 'Parcel Post<sup>®</sup>',
  'Media Mail' => 'Media Mail<sup>®</sup>',
  'Library Mail' => 'Library Mail'
);
$this->type_to_request = array(
  'Express Mail' => 'Express Commercial',
  'Express Mail Hold For Pickup' => 'Express HFP Commercial',
  'Express Mail Flat Rate Boxes' => 'Express Commercial',
  'Express Mail Flat Rate Boxes Hold For Pickup' => 'Express HFP Commercial',
  'Express Mail Flat Rate Envelope' => 'Express Commercial',
  'Express Mail Flat Rate Envelope Hold For Pickup' => 'Express HFP Commercial',
  'Express Mail Legal Flat Rate Envelope' => 'Express Commercial',
  'Express Mail Legal Flat Rate Envelope Hold For Pickup' => 'Express HFP Commercial',
  'Priority Mail' => 'Priority Commercial',
  'Priority Mail Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Large Flat Rate Box' => 'Priority Commercial',
  'Priority Mail Large Flat Rate Box Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Medium Flat Rate Box' => 'Priority Commercial',
  'Priority Mail Medium Flat Rate Box Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Small Flat Rate Box' => 'Priority Commercial',
  'Priority Mail Small Flat Rate Box Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Regional Rate Box A' => 'Priority Commercial',
  'Priority Mail Regional Rate Box A Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Regional Rate Box B' => 'Priority Commercial',
  'Priority Mail Regional Rate Box B Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Regional Rate Box C' => 'Priority Commercial',
  'Priority Mail Regional Rate Box C Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Flat Rate Envelope' => 'Priority Commercial',
  'Priority Mail Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Legal Flat Rate Envelope' => 'Priority Commercial',
  'Priority Mail Legal Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Padded Flat Rate Envelope' => 'Priority Commercial',
  'Priority Mail Padded Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Gift Card Flat Rate Envelope' => 'Priority Commercial',
  'Priority Mail Gift Card Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Small Flat Rate Envelope' => 'Priority Commercial',
  'Priority Mail Small Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial',
  'Priority Mail Window Flat Rate Envelope' => 'Priority Commercial',
  'Priority Mail Window Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial',
  'First-Class Mail Parcel' => 'First Class',
  'First-Class Mail Large Envelope' => 'First Class',
  'First-Class Mail Letter' => 'First Class',
  'First-Class Package Service' => 'First Class Commercial',
  'First-Class Package Service Hold For Pickup' => 'First Class HFP Commercial',
  'Parcel Post' => 'Parcel',
  'Media Mail' => 'Media',
  'Library Mail' => 'Library'
);
$this->type_to_container = array(
  'Express Mail' => '',
  'Express Mail Hold For Pickup' => '',
  'Express Mail Flat Rate Boxes' => 'Flat Rate Boxes',
  'Express Mail Flat Rate Boxes Hold For Pickup' => 'Flat Rate Boxes',
  'Express Mail Flat Rate Envelope' => 'Flat Rate Envelope',
  'Express Mail Flat Rate Envelope Hold For Pickup' => 'Flat Rate Envelope',
  'Express Mail Legal Flat Rate Envelope' => 'Legal Flat Rate Envelope',
  'Express Mail Legal Flat Rate Envelope Hold For Pickup' => 'Legal Flat Rate Envelope',
  'Priority Mail' => '',
  'Priority Mail Hold For Pickup' => '',
  'Priority Mail Large Flat Rate Box' => 'LG Flat Rate Box',
  'Priority Mail Large Flat Rate Box Hold For Pickup' => 'LG Flat Rate Box',
  'Priority Mail Medium Flat Rate Box' => 'MD Flat Rate Box',
  'Priority Mail Medium Flat Rate Box Hold For Pickup' => 'MD Flat Rate Box',
  'Priority Mail Small Flat Rate Box' => 'SM Flat Rate Box',
  'Priority Mail Small Flat Rate Box Hold For Pickup' => 'SM Flat Rate Box',
  'Priority Mail Regional Rate Box A' => 'Regional Rate Box A',
  'Priority Mail Regional Rate Box A Hold For Pickup' => 'Regional Rate Box A',
  'Priority Mail Regional Rate Box B' => 'Regional Rate Box B',
  'Priority Mail Regional Rate Box B Hold For Pickup' => 'Regional Rate Box B',
  'Priority Mail Regional Rate Box C' => 'Regional Rate Box C',
  'Priority Mail Regional Rate Box C Hold For Pickup' => 'Regional Rate Box C',
  'Priority Mail Flat Rate Envelope' => 'Flat Rate Envelope',
  'Priority Mail Flat Rate Envelope Hold For Pickup' => 'Flat Rate Envelope',
  'Priority Mail Legal Flat Rate Envelope' => 'Legal Flat Rate Envelope',
  'Priority Mail Legal Flat Rate Envelope Hold For Pickup' => 'Legal Flat Rate Envelope',
  'Priority Mail Padded Flat Rate Envelope' => 'Padded Flat Rate Envelope',
  'Priority Mail Padded Flat Rate Envelope Hold For Pickup' => 'Padded Flat Rate Envelope',
  'Priority Mail Gift Card Flat Rate Envelope' => 'Gift Card Flat Rate Envelope',
  'Priority Mail Gift Card Flat Rate Envelope Hold For Pickup' => 'Gift Card Flat Rate Envelope',
  'Priority Mail Small Flat Rate Envelope' => 'SM Flat Rate Envelope',
  'Priority Mail Small Flat Rate Envelope Hold For Pickup' => 'SM Flat Rate Envelope',
  'Priority Mail Window Flat Rate Envelope' => 'Window Flat Rate Envelope',
  'Priority Mail Window Flat Rate Envelope Hold For Pickup' => 'Window Flat Rate Envelope',
  'First-Class Mail Parcel' => '',
  'First-Class Mail Large Envelope' => '',
  'First-Class Mail Letter' => '',
  'First-Class Package Service' => '',
  'First-Class Package Service Hold For Pickup' => '',
  'Parcel Post' => '',
  'Media Mail' => '',
  'Library Mail' => ''
);
$this->intl_types = array(
  'Global Express Guaranteed (GXG)**' => 'Global Express Guaranteed<sup>®</sup> (GXG)**',
  'Express Mail International' => 'Express Mail<sup>®</sup> International',
  'Priority Mail International' => 'Priority Mail<sup>®</sup> International',
  'USPS GXG Envelopes**' => 'USPS GXG<sup>™</sup> Envelopes**',
  'Express Mail International Flat Rate Boxes' => 'Express Mail<sup>®</sup> International Flat Rate Boxes',
  'Express Mail International Flat Rate Envelope' => 'Express Mail<sup>®</sup> International Flat Rate Envelope',
  'Express Mail International Legal Flat Rate Envelope' => 'Express Mail<sup>®</sup> International Legal Flat Rate Envelope',
  'Priority Mail International Large Flat Rate Box' => 'Priority Mail<sup>®</sup> International Large Flat Rate Box',
  'Priority Mail International Medium Flat Rate Box' => 'Priority Mail<sup>®</sup> International Medium Flat Rate Box',
  'Priority Mail International Small Flat Rate Box**' => 'Priority Mail<sup>®</sup> International Small Flat Rate Box**',
  'Priority Mail International DVD Flat Rate priced box**' => 'Priority Mail<sup>®</sup> International DVD Flat Rate priced box**',
  'Priority Mail International Large Video Flat Rate priced box**' => 'Priority Mail<sup>®</sup> International Large Video Flat Rate priced box**',
  'Priority Mail International Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Flat Rate Envelope**',
  'Priority Mail International Legal Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Legal Flat Rate Envelope**',
  'Priority Mail International Padded Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Padded Flat Rate Envelope**',
  'Priority Mail International Gift Card Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Gift Card Flat Rate Envelope**',
  'Priority Mail International Small Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Small Flat Rate Envelope**',
  'Priority Mail International Window Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Window Flat Rate Envelope**',
  'First-Class Mail International Parcel**' => 'First-Class Mail<sup>®</sup> International Parcel**',
  'First-Class Mail International Large Envelope**' => 'First-Class Mail<sup>®</sup> International Large Envelope**',
  'First-Class Mail International Letter**' => 'First-Class Mail<sup>®</sup> International Letter**'
);

Edited by krnl

Share this post


Link to post
Share on other sites

Looks like the updated arrays in the previous post added values for First-Class Package Service

Share this post


Link to post
Share on other sites

Even though First Class (First-Class Mail Parcel) is being quoted now, I'm still missing the title "First-Class Mail<sup>®</sup> Parcel" title in checkout_shipping. So, for USPS, I have:

 

Priority Mail ® $8.65

[blank] $4.99

 

[blank] should say "First-Class Mail<sup>®</sup> Parcel" as defined in $this->types = array( above.

Share this post


Link to post
Share on other sites

Alright - that didn't work... When I select the shipping option with no title, when I continue the checkout, it goes back to Priority Mail.

 

I need to get this fixed ASAP.. Anyone have any ideas?

Share this post


Link to post
Share on other sites

Had to give up for now and install 5.2.2 with previously discussed changes. Seems to be working.

 

I don.t care about all the extra that 6.1 may provide. All I want is something that will serve shipping quotes to my customers, and 5.2.2 seems to do it.

Share this post


Link to post
Share on other sites

I have the same problem as krnl noted above. I upgraded from a REALLY old USPS methods due to USPS turning off the old API a few days ago. I am currently using 6.1a and first class mail doesn't work.. here are some notes on things I have tried.. maybe it gives someone a clue? Any fixes?

 

In the second array in usps.php... $this->type_to_request = array(

the following line I had to change

'First-Class Mail Parcel' => 'First Class Commercial',

I changed it to:

'First-Class Mail Parcel' => 'First Class',

This now allows a QUOTE to be displayed.. but there is no title as krnl mentions above. Where it should be "First-Class Mail<sup>®</sup> Parcel" its just blank.

Below I included a copy of the portion of the html output.. You can see the price of $2.29 but no discription. You can see this is first class mail as well, because of .. value="usps_First-Class Mail"

If you continue to select the empty first class mail option.. the actual amount and shipping type changes to what was first on the USPS mailing list (in my case it was express mail at $14.75).

 

ALSO.. first class is not adding any handling charges. I have a feeling there is some text matching problems somewhere, but I can't seem to figure it out. Anyone have a fix?

 

Thanks!

 

<td class="main" width="75%">Express Mail<sup>®</sup><br>---Approximate delivery time from mailing date 2 days</td>

<td class="main">$14.75</td>

<td class="main" align="right"><input type="radio" name="shipping" value="usps_Express Mail"></td>

<td width="10"><img src="images/pixel_trans.gif" width="10" height="1" border="0" alt=""></td>

</tr>

<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 7)">

<td width="10"><img src="images/pixel_trans.gif" width="10" height="1" border="0" alt=""></td>

 

<td class="main" width="75%">Priority Mail<sup>®</sup><br>---Approximate delivery time from mailing date 1 day</td>

<td class="main">$7.00</td>

<td class="main" align="right"><input type="radio" name="shipping" value="usps_Priority Mail"></td>

<td width="10"><img src="images/pixel_trans.gif" width="10" height="1" border="0" alt=""></td>

</tr>

<tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 8)">

<td width="10"><img src="images/pixel_trans.gif" width="10" height="1" border="0" alt=""></td>

 

<td class="main" width="75%"><br>---Approximate delivery time from mailing date 1 day</td>

<td class="main">$2.29</td>

<td class="main" align="right"><input type="radio" name="shipping" value="usps_First-Class Mail" CHECKED></td>

<td width="10"><img src="images/pixel_trans.gif" width="10" height="1" border="0" alt=""></td>

</tr>

</table></td>

Share this post


Link to post
Share on other sites

USPS recently retired a API that my site used to get USPS rates. I installed a new USPS module USPS Methods and it worked fine on my site hidlook.com

 

It did not work fine on my other site connectorsupply.com

 

when checking out on: checkout_shipping.php the rates now show up correctly and you can select one of the USPS methods

 

But when you get to the checkout_confirmation.php page the USPS method that you chose is not there and it does not get added to the customers total for payment.

 

If you choose a UPS method it works fine.

 

I believe it worked on hidlook.com and not on connectorsupply.com correctly because connectorsupply.com has this CCGV module installed for the coupons and gift vouchers that has the pages modified differently.

 

I really need this fixed.

 

Can anyone help me?

 

THis is my business and my only source of income and I really need it to get fixed. Customers checking out are not getting charged for shipping when selecting a USPS method.

 

Thanks,

Joe

Share this post


Link to post
Share on other sites

@@J0EC00L If it's the add-on entitled USPS Methods, and you're using ver. 6.0+ then I would advise uninstalling it. I personally didn't like it at all despite its creativity. Under USPS Methods, I used ver. 5.2.2 and then recently switched to this better version of the USPS shipping add-on: http://addons.oscommerce.com/info/8403 Additionally, I've successfully used CCGV in both USPS versions that I had.

Share this post


Link to post
Share on other sites

Hallelujah! Thanks to stumbling on post #1233 above, I finally got the damned First Class option to not only display properly but also follow through the checkout successfully. I run a heavily modded site, 2.2 and what seems like a million shipping options! (most of which are just outdated, unused and halfassed uninstalled, if you know what I mean....when you get something to work miraculously, you just want to back away from the code -- very slowly).

 

The key was the code for First-Class Package Service. Seemed like other threads pointing out the 'service' vs 'package' vs 'parcel' yada yada were misleading or not compatible, or just wacked.

 

Anyhows, here was my issues with 6.1 hopefully to save some other person hours of grief. I installed 6.1 (didn't bother with a) successfully, but the First Class rate was appearing, but without the title. The rate would appear, but when clicked to checkout, it would default back to the top option, whether it be Express Mail or Priority or whatever and customers would get charged for that service unknowingly. After struggling with the freakin' USPS naming conventions on my own, I stumbled on #1233 above, copied the piece into the usps.php from 6.1b (not a AND overwrote the one from 6.0), and it all works now. The rates are shown, correct, and when selected follows through the checkout process perfectly.

 

...what a nightmare for something so simple...

USPS United States Postal Service (1 pkg, 0.47 lbs total) (First-Class Package Service

---Delivery Confirmation

---Approximate delivery time from mailing date 1 day) $4.33 [select]

USPS United States Postal Service (1 pkg, 0.47 lbs total) (Priority Mail®

---Delivery Confirmation

---Approximate delivery time from mailing date 1 day) $6.75 [select]

USPS United States Postal Service (1 pkg, 0.47 lbs total) (Parcel Post®

---Delivery Confirmation

---Approximate delivery time from mailing date 2 days) $7.90 [select]

USPS United States Postal Service (1 pkg, 0.47 lbs total) (Express Mail®

---Approximate delivery time from mailing date 1 day) $14.35 [select]

Edited by kepa

Share this post


Link to post
Share on other sites

I just installed v 6.1a and now I'm receiving this error on /checkout_phpshipping.php

 

-2147219101 missing value for service.

 

any ideas? google is being retarded for information on this error :(

 

currently using:

OS 2.2 RC2a

5.2.17 php

Edited by graveyardrecords

Share this post


Link to post
Share on other sites

I did too at first, then I replaced it with one of the other usps.php modules and it worked. Can't say why it worked or why it didn't work before, but I would try that and see what happens. 6.1b may be good, or even that code from above pasted into your usps.php from 6.1a may fix something. Yes, it is quite frustrating to say the least because when I got it at first, I never figure out the issue, so just installed another one, filled it out in admin, and it worked.

Share this post


Link to post
Share on other sites

Thanks for the contribution. I'm having a little difficulty on the "if" insertion section.

 

My modules.php file is:

-------------------

if (tep_not_null($action)) {

switch ($action) {

// {{ buySAFE Module

case 'buysafe_save':

-------------------

 

This code, as included in the contribution, does not exist in my modules.php file

 

-------------------

if (tep_not_null($action)) {

switch ($action) {

case 'save':

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

-------------------

 

Can anyone help with this? Am I using a too-old OSC version for this contribution or...

 

I'm using OSC V2.2 RC2

Share this post


Link to post
Share on other sites

Hi

I installed usps 6.1 and seems to work fine.. in checkout i see the quote for first class mail .. but the words "first class mail" arent showing up..

anyone know how to fix it so it showes.

 

Thanks

Share this post


Link to post
Share on other sites

As with everything here, example and explanation isn't clear enough to get the results we need... so here is my attempt at clarifying what is needed to be done to update the shipping arrays in usps.php.

 

In the contribution for USPS Methods 6.1, you should have a PHP page installed that retrieves an updated array from the USPS server.

 

Type into the address bar "your host... /catalog/admin/USPS_methods_utility.php"

 

The page will display the array that ...catalog/includes/modules/shipping/usps.php needs to be updated with.

 

Below is just a snippet of the results you should see, do not use it. Run the USPS_methods_utility.php yourself, because most likely this array is likely to change.

 

Utility to get all USPS shipping methods

Copy the following two statements and paste them into function usps in the catalog/includes/modules/shipping/usps.php file overwriting the existing statements that set these variables. Remove the USPS module in admin and then reinstall it in order to make use of the new methods.

$this->types = array(
  'Express Mail' => 'Express Mail<sup>®</sup>',
  'Express Mail Hold For Pickup' => 'Express Mail<sup>®</sup> Hold For Pickup',
  'Express Mail Flat Rate Boxes' => 'Express Mail<sup>®</sup> Flat Rate Boxes',
  'Express Mail Flat Rate Boxes Hold For Pickup' => 'Express Mail<sup>®</sup> Flat Rate Boxes Hold For Pickup',

 

Open usps.php and replace the code completely with the updated array from the request.

 

Uninstall USPS from your admin panel and then reinstall it. Unfortunately, you will have to redo all of your settings... but it should be accurate and complete.

Edited by geomilli

Share this post


Link to post
Share on other sites

Just installed 6.1a with dimensional support, the basic module seems to work great, but I am having trouble with it quoting flat rate boxes.

 

I have defined boxes the size of flat rate boxes.

 

If something should fit in a small flat rate box, it quotes small, medium and large.

 

But if it should fit in a medium, I get no flat rate boxes quoted.

 

For example I have a product that I defined as 8x10x1 that would fit in either of the Medium Flat Rate boxes but none are quoted.

 

Am I missing something or the module not working correctly?

Share this post


Link to post
Share on other sites

Is there any contribution that adds the option for customer to select if they want usps shipping insurance or not for their order?

 

Cheers


-Peder Beckman-

Kool Kat Jazz Records

Share this post


Link to post
Share on other sites

Anyone make modifications for the Parcel Post -> Standard Post changes from USPS? Keep getting an error when selecting it and no description on First Class Package when removing it...

Share this post


Link to post
Share on other sites

I uninstalled and reinstalled the latest version of USPS methods (6.1b) yesterday to take care of the new updates (I updated all the service names in includes/modules/shipping/usps.php using the USPS_methods_utility.php beforehand). Now the international shipping is working great but for domestic shipping, I get this error: -2147219101 Missing value for Service. We are running 2.2 with php 5.3. Does anybody have any idea as to where start looking for what the problem is?

Share this post


Link to post
Share on other sites

The USPS_methods_utility.php wasn't returning the correct values. I've added the modules to the contribution that needed to be changed. My site only uses Domestic First Class Package, Priority Mail, and Parcel Post without insurance or delivery confirmation along with International Priority Mail and First Class. The error -2147219101 that was occuring was due to no service being passed when selecting Standard Post as a shipping option. The service needed to be "Parcel Post".

Share this post


Link to post
Share on other sites

So I came back after a few years with my store shut down and am starting up my store again. Since my server died last year, I had to reload everything due to new hardware. Things sure have changed since 2008. Sorry about abandoning you all.

 

Now im kinda lost where everything is in this module.

 

I need some way to change what shipping methods are being used when different product attributes are selected.

 

example:

small sticker -> first class letter, flat rate priority

large sticker -> first class large envelope, flat rate priority

extra large sticker -> parcel options (priority package, parcel post, first class package, ...)

 

Anyone know where to start coding this? it doesn't need to be pretty. hard coded is fine.

Any help is greatly appreciated.

Edited by naps1saps

Share this post


Link to post
Share on other sites

Is anyone else having trouble getting USPS rates to show?? I'm getting the standard failure message.

 

"An error occured with the USPS shipping calculations. If you would like to use USPS as your shipping method, please Contact Us."

 

Was working fine yesterday.....

Share this post


Link to post
Share on other sites

Is anyone else having trouble getting USPS rates to show?? I'm getting the standard failure message.

 

"An error occured with the USPS shipping calculations. If you would like to use USPS as your shipping method, please Contact Us."

 

Was working fine yesterday.....

 

Same here. Trying to find a fix...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×