Jump to content



- - - - -

USPS Shipping Labels


  • Please log in to reply
50 replies to this topic

#1   xiloicta

xiloicta
  • Members
  • 1 posts
  • Real Name:Xilo Martinez

Posted 05 March 2010 - 11:33 PM

OK, here is the situation, im not an expert on this, so maybe for you it is so simple, im using OSCommerce 2.2, everything works normal, but once the costumer has been made the shoping, there is no way to print a shipping label directly from the administration tool, i talk with USPS support, and they say the API is able to print the label from my Store Administration Tool, now, I open the usps.php, that comes in includes/modules/shipping  and i can't see any script that refers to the function read o work with the generation of a shipping label, as i said, im just an amateur on this, so maybe i miss something at this script.

anyone have an information about this,

1.- It is posible to print a shipping label straigth from the ADMN tool and pay for it?  2.- there is any script i have to add to usps.php ?
3.- I missing something?
3.- shall i surrender and print it from Paypal?
4.- Quit and open a Tamales Restorant?

any sggestion welcome!!

Xilo

#2   natrium42

natrium42
  • Members
  • 142 posts
  • Real Name:Alexei Karpenko

Posted 08 March 2010 - 03:31 AM

View Postxiloicta, on 05 March 2010 - 11:33 PM, said:

1.- It is posible to print a shipping label straigth from the ADMN tool and pay for it?  2.- there is any script i have to add to usps.php ?
3.- I missing something?
3.- shall i surrender and print it from Paypal?
4.- Quit and open a Tamales Restorant?
The solution is:
0.- Search "usps shipping labels" in contributions resulting in http://addons.oscommerce.com/info/1498

#3   costast2

costast2
  • Members
  • 38 posts
  • Real Name:WR
  • Gender:Male

Posted 18 March 2012 - 09:21 PM

View Postnatrium42, on 08 March 2010 - 03:31 AM, said:

The solution is:
0.- Search "usps shipping labels" in contributions resulting in http://addons.oscommerce.com/info/1498

It looks like this is now broken with the USPS Click and Ship Redesign  :(

Anyone get it to work again?

#4   krdito

krdito
  • Members
  • 90 posts
  • Real Name:Krdito
  • Gender:Female

Posted 18 March 2012 - 11:44 PM

Yes, today's new USPS redesign has caused problems for me as well.  Once all of the shipping info is auto-entered at usps.com, the next page of the process is now invalid, so I have to manually enter all of the information.  Hoping for a quick and easy fix!

#5   vjwebb

vjwebb
  • Community Sponsor
  • 54 posts
  • Real Name:V J Webb
  • Gender:Female
  • Location:Fresno, CA

Posted 19 March 2012 - 02:41 AM

I too can no longer print labels from the admin screen.  When I click the print shipping label button, I am taken to the USPS website with the info filled in (just like always).  When I click continue from that screen, I am taken to the login screen.  I login and get a page has moved message.  When I go to the new shipping page, the customer's address isn't filled in and my company name isn't on return address.  Once again, they have done a redesign without any thought as to the impact it will have on their business customers.  I too am hoping for a fast and easy fix.
-- A ship in a harbor is safe, but that is not a ships ultimate purpose.

#6   costast2

costast2
  • Members
  • 38 posts
  • Real Name:WR
  • Gender:Male

Posted 19 March 2012 - 03:20 AM

I believe they have zero regard on how it impacts everyone.  :(


It looks like the pages have changed and the field names. Why would they do that?

krdito- that information isnt entered on USPS.com when you click to create a label, that is your existing USPS_ship.php page that populates and sends it to USPS (or what used to be there)

#7   Wes_SFLL

Wes_SFLL
  • Members
  • 10 posts
  • Real Name:Wes
  • Gender:Male

Posted 19 March 2012 - 02:35 PM

WTH!!! I can't believe that they did this...!!!! BAD start to a monday!

I did a test on usps.com and now the link needs a label id which the oldway didn't need to get to the next page.

Anyone got the hot fix?

#8   imagixx

imagixx
  • Members
  • 98 posts
  • Real Name:Martin B.
  • Gender:Male

Posted 19 March 2012 - 07:02 PM

Thjis is a bog USPS f-up.  No wonder they are going broke, an apparent lack of any customer consideration.  What A-holes.  I assume there are a lot of people that this will affect.  Hope a fix comes soon.  This seriously affects our business - but what does USPS care?

#9   vjwebb

vjwebb
  • Community Sponsor
  • 54 posts
  • Real Name:V J Webb
  • Gender:Female
  • Location:Fresno, CA

Posted 19 March 2012 - 08:52 PM

I have been having an email conversation with USPS and their response is that the redesign didn't have any effect on the API.  They keep telling me to contact my 3rd party vendor.  However, I don't have a 3rd party vendor.  Does anyone have any suggestions other than to check out shipping via Fedex or UPS?
-- A ship in a harbor is safe, but that is not a ships ultimate purpose.

#10   costast2

costast2
  • Members
  • 38 posts
  • Real Name:WR
  • Gender:Male

Posted 19 March 2012 - 10:53 PM

The way the contribution works is different. They have altered the way the fields are populated on their site (which the contribution recreated)  and then sent to USPS via that web page.

The "contact your 3rd party vendor" is their standard response unfortunately.

The contribution will no longer function with this USPS redesign

Edited by costast2, 19 March 2012 - 10:54 PM.


#11   Gary Heitman

Gary Heitman
  • Members
  • 2 posts

Posted 20 March 2012 - 11:52 AM

hello;

new to this forum, but unfortunately familiar with this issue. i've inherited support for store built from oscommerce, and yesterday, shipping labels stopped working. after some review of how things were working, i see that the form, form fields, etc. have changed. looks now like a multi-part form, etc.

has anyone experiencing this problem looked into stamps.com (comes with oscommerce module) or another way to produce USPS labels for orders? is anyone working on a fix for this module, and in need of help testing, etc.?

thanks -
gary

#12   Wes_SFLL

Wes_SFLL
  • Members
  • 10 posts
  • Real Name:Wes
  • Gender:Male

Posted 20 March 2012 - 12:57 PM

Ok After 14 hours of hacking that code apart I got it working.... all the code for the return address is hard coded so that I could get this working faster. I ended up using some code I found for the zen cart forum and did a include to the order.php to the new file that I created. I will try and update the usps shipping labels. Again its not really clean but I have 50 labels I need to print from the weekend and didn't want this problem to go on any longer.

Maybe someone can add back in all the cool variables etc from the original one. All credit goes to the past authors.

#13   Wes_SFLL

Wes_SFLL
  • Members
  • 10 posts
  • Real Name:Wes
  • Gender:Male

Posted 20 March 2012 - 01:10 PM

In orders.php you should have:

a href="' . tep_href_link(FILENAME_ORDERS_USPS_SHIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' .

Change it to:

a href="' . tep_href_link('uspslabelfix.php', 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' .

then just upload the new uspslabelfix file i made

#14   dsolutions

dsolutions
  • Members
  • 65 posts
  • Real Name:Evan
  • Gender:Male
  • Location:Texas

Posted 20 March 2012 - 02:21 PM

For some reason, when I use the file that you updated, it does not bring over the state, I believe it is because it is being saved in the database as the full state name and not the 2 letter abbr.  Is there a way to covert this before it is sent to usps?

Thanks

Edited by dsolutions, 20 March 2012 - 02:29 PM.


#15   blueedge

blueedge
  • Members
  • 148 posts
  • Real Name:Keith

Posted 20 March 2012 - 02:49 PM

Unfortunately, I'm not getting the fix to work.

I uploaded the uspslabelfix.php file to the admin directory. Instead of editing the admin/orders.php file, I edited the admin/includes/filenames.php file and replaced

    define('FILENAME_ORDERS_USPS_SHIP', 'usps_ship.php');

      with

   define('FILENAME_ORDERS_USPS_SHIP', 'uspsshiplabelfix.php');

Now when I click on the USPS label button from the orders.php page, a new window appears with a "Ship a USPS Package" button and the order ID in the URL. When I click on the button (and after logging into the USPS.com site), no shipping info (name, address, etc) appears in the label form on USPS.com.

#16   blueedge

blueedge
  • Members
  • 148 posts
  • Real Name:Keith

Posted 20 March 2012 - 03:07 PM

Well, I'm making progress. By including <? include('uspslabelfix.php');?>, the label function now works. However, like the poster above, all of the info is imported into the USPS form except for the state.

#17   blueedge

blueedge
  • Members
  • 148 posts
  • Real Name:Keith

Posted 20 March 2012 - 06:23 PM

The state does not appear in the USPS label form because the form is looking for the two-letter state abbreviation. However, in the case of my site, the full state name is being sent to the USPS label form. To remedy the situation, I modified Wes_SFLL's uspslabelfix.php file as follows:

Added:


$state_query = tep_db_query("SELECT zone_code FROM " . TABLE_ZONES . " where zone_name = '" . $order->delivery['state'] . "'");
$state_abbreviation = tep_db_fetch_array($state_query);

Changed:

<input type="hidden" name="form.deliveryState" value= "<?php echo $order->delivery['state'];?>" id="stateTo">

To:

<input type="hidden" name="form.deliveryState" value= "<?php echo $state_abbreviation['zone_code'];?>" id="stateTo">

I hope that helps.

#18   Wes_SFLL

Wes_SFLL
  • Members
  • 10 posts
  • Real Name:Wes
  • Gender:Male

Posted 20 March 2012 - 07:24 PM

Oh sorry I have that function doing that when the order is placed...Trying to keep the DB trim! lol ....My bad

#19   Wes_SFLL

Wes_SFLL
  • Members
  • 10 posts
  • Real Name:Wes
  • Gender:Male

Posted 20 March 2012 - 07:46 PM

I am still trying to figure out if we can override the preset return address from when your usps.com account was setup. I ship from 2 different sites and want the info to auto load but it sure looks like it doesn't wanna play fair. O well.... at least we can still use this to print labels...


I like how much easier it is to print labels...available to print until midnight and the new pdf option sure is nice. NO MORE DOUBLE CHARGES so I hope.

#20   Gary Heitman

Gary Heitman
  • Members
  • 2 posts

Posted 20 March 2012 - 08:36 PM

looks like state needs to be the abbreviation (as @dsolutions has stated); i'm not 100% decided on how i'll do this, but in some fashion, need to take the billing state name and get it's abbreviation to place in the form.

Thank you SO MUCH, Wes ...