Zen Cart Logo
Forums / Addon Shipping Modules / usps.com Click-n-ship AutoFill Button Contrib

usps.com Click-n-ship AutoFill Button Contrib

Views: 224,992

Results 261 to 280 of 827
19 Apr 2008, 11:15 AM
#261
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

usps.com Click-n-ship AutoFill Button Contrib

Well I don't see anything new in their source code, but I am seeing the error as well. Might just be a maintenance thing they are doing, but I'll keep looking.

19 Apr 2008, 3:09 PM
#262
kehrli avatar

kehrli

Zen Follower

Join Date:
Aug 2007
Location:
Cannon Beach, OR
Posts:
180
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

The USPS moves in mysterious ways.

It's probably a good time to mention that I love your module. It's just a truly excellent labor saver for handling a volume of orders. When something like this happens I get a chance to see it's value by comparing it to operating without it. Thanks a lot!

19 Apr 2008, 3:27 PM
#263
kehrli avatar

kehrli

Zen Follower

Join Date:
Aug 2007
Location:
Cannon Beach, OR
Posts:
180
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Late breaking news!

I just ran USPS Autofill successfully again! Woot!

I guess their software was having a bad hair day.

19 Apr 2008, 5:34 PM
#264
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Still no luck for me. Their HTML page source code seems unchanged but I guess their backend starts validating some fields now. For example, the following fields:
org.apache.struts.taglib.html.TOKEN
packageId
labelId

They are all set to empty in the autofill module because there's no way to generate this on our own, but as I studied their form, they have these fields pre-populated when displaying the empty form. My logic now is that they now validate the values of any above fields, and throw errors for empty or invalid values.

If so, it could be solved by triggering their site to generate values for the above fields (I don't know how yet), then submitting the form.

If this workaround won't work, another possible solution would be writing a Firefox add-on transferring data between pages. The Firefox add-on can actually solve any shipping site including UPS.

kehrli, can you please do a test by logging out USPS site (or cleaning browser cache and session), then trying auto fill again?

19 Apr 2008, 6:36 PM
#265
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: usps.com Click-n-ship AutoFill Button Contrib

linksys:

Still no luck for me. Their HTML page source code seems unchanged but I guess their backend starts validating some fields now. For example, the following fields:
org.apache.struts.taglib.html.TOKEN
packageId
labelId

They are all set to empty in the autofill module because there's no way to generate this on our own, but as I studied their form, they have these fields pre-populated when displaying the empty form. My logic now is that they now validate the values of any above fields, and throw errors for empty or invalid values.

Same here, still not working. And you are right about those fields, it was lucky that they even worked to begin with when I first made it. I do hope tho that they stop it. :P I am going to contact them and explain the problem. Maybe they will see it our way :)

linksys:

If this workaround won't work, another possible solution would be writing a Firefox add-on transferring data between pages. The Firefox add-on can actually solve any shipping site including UPS.

You are readin my mind :) I actually was trying some other methods initially before I had this method working, using the user.js file that both FF and Opera use. But initially I was using a toolbar for IE6 to do some parsing work but it was much flakier than the USPS Autofill contrib.

I am not yet familiar with FF extension coding just yet, but I was planning on getting into that anyway. I will take a look at some stuff. If anyone else has any experience in jscript, FF extensions, or any ideas please share them here so we can get a collective effort to get this working asap. I had to ship 2 items today manually copying and pasting line-by-line. Took me like 8 min to do what I used to do in 2.

19 Apr 2008, 7:52 PM
#266
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Yes, but don't forget there are Macintosh users who have Safari as their default browser. Whatever you do it should be cross-platform compatible.

19 Apr 2008, 8:36 PM
#267
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: usps.com Click-n-ship AutoFill Button Contrib

There's a FF version for PC, Mac, & Linux. :)

19 Apr 2008, 9:59 PM
#268
johnga avatar

johnga

Zen Follower

Join Date:
Oct 2005
Location:
San Francisco
Posts:
100
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

I also am now very dependent on your Contrib - so thanks again. A bit more info: I am also unable to use autofill right now, and was on the USPS site looking for info. While there I decided to order some supplies - and learned that that part of their web site is also on the fritz, so I think something is up system wide. We are waiting patiently.

19 Apr 2008, 10:56 PM
#269
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

I don't know FF add-on programming either but I am glad you are heading that way :mellow:

qhome:

I am not yet familiar with FF extension coding just yet, but I was planning on getting into that anyway. I will take a look at some stuff. If anyone else has any experience in jscript, FF extensions, or any ideas please share them here so we can get a collective effort to get this working asap. I had to ship 2 items today manually copying and pasting line-by-line. Took me like 8 min to do what I used to do in 2.

20 Apr 2008, 12:58 AM
#270
kehrli avatar

kehrli

Zen Follower

Join Date:
Aug 2007
Location:
Cannon Beach, OR
Posts:
180
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

I'm sorry you guys are having trouble. I used AutoFill for about 10 labels this morning, and I just checked again, and it's still working for me.

It definitely was not working last night, and early this AM.

I'm using ZenCart version 1.3.7.1 and I upgraded to the latest AutoFill last night.

20 Apr 2008, 9:11 PM
#271
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

My USPS Autofill has stopped working. I just checked my install and I am using v1.3 for ZC 1.38.
The ParseIt() function in the modules/usps_autofill_button.php line 122 reads:

function ParseIt() {
  //document.forms['labelInformationForm'].submit();
  document.getElementById('labelInformationForm').submit();
  //window.history.go(-1)
}
</script>
<script src="https://sss-web.usps.com/cns/jscript/labelInformation.js"></script>

<form target="_blank" method="post" action="https://sss-web.usps.com/cns/labelInformation.do" name="labelInformationForm" id="labelInformationForm">

but https://sss-web.usps.com/cns/labelInformation.do is the "sign-on" page for USPS.
The actual label info is on https://sss-web.usps.com/cns/labelSubmit.do if you just hit the "Go" button on the signon page or on https://sss-web.usps.com/cns/signinLanding.do if you sign in first. However changing to either of these two new URLs does NOT solve the problem and only brings you to the sign on page, even if you sign in first and then hit the Autofill button. Bummer :frusty:.

20 Apr 2008, 9:19 PM
#272
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: usps.com Click-n-ship AutoFill Button Contrib

mauryg:

My USPS Autofill has stopped working. I just checked my install and I am using v1.3 for ZC 1.38.
The ParseIt() function in the modules/usps_autofill_button.php line 122 reads:

function ParseIt() {
//document.forms['labelInformationForm'].submit();
document.getElementById('labelInformationForm').submit();
//window.history.go(-1)
}
</script>

<script src="https://sss-web.usps.com/cns/jscript/labelInformation.js"></script> <form target="_blank" method="post" action="https://sss-web.usps.com/cns/labelInformation.do" name="labelInformationForm" id="labelInformationForm"> ``` > > but <https://sss-web.usps.com/cns/labelInformation.do> is the "sign-on" page for USPS. > The actual label info is on <https://sss-web.usps.com/cns/labelSubmit.do> if you just hit the "Go" button on the signon page or on <https://sss-web.usps.com/cns/signinLanding.do> if you sign in first. However changing to either of these two new URLs does NOT solve the problem and only brings you to the sign on page, even if you sign in first and then hit the Autofill button. Bummer :frusty:.

I know what you are saying. I was confused for a while with that too. Actually, lableinformation.do only redirects you to the sign on page if you aren't signed in or don't pass any valid parameters. If you look at the actual address entry page, the form "POST" site is

<form target="_blank" method="post" action="https://sss-web.usps.com/cns/labelInformation.do" name="labelInformationForm" id="labelInformationForm">

and the name of the form that gets submitted is labelInformationForm

The odd thing is that hasn't changed so I'm still under as to what they may have done on the back end. USPS Autofill was a hack, a pretty good hack.. but a hack all the same. The same goes with my attempts to get it to work with Paypal's USPS form and UPS... On paypal, using the same method... only the Name city and phone number fields would load. The Address, state and other stuff wouldn't. I could never figure out why, I just assumed they had some form autoclearing javascript that loaded on the page. But there may be other powers at work that override the hack. At least if it is browser based, it should be run at the client level, after all other page scripts have loaded.

This should technically allow us to be able to make it work with multiple page steps. Then you could autofill the form, and auto-select the shipping method, etc. Should also be able to work with UPS and FedEx. THEORETICALLY

21 Apr 2008, 4:21 AM
#273
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Well, :) the non-hacking, ultimate official way of doing this is through USPS Shipping Label API, as I researched:
http://www.usps.com/webtools/shipping.htm
Anybody tried this before?

qhome:

USPS Autofill was a hack, a pretty good hack.. but a hack all the same.

21 Apr 2008, 4:31 AM
#274
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Looks like oscommerce already has this module using API: http://www.oscommerce.com/community/contributions,1498

It's open source so perhaps somebody could migrate it to ZenCart. :clap:

21 Apr 2008, 4:46 AM
#275
linksys avatar

linksys

New Zenner

Join Date:
Nov 2006
Posts:
30
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Sorry my bad. I take this back. This does not use API. Lessons learned - never post before having a coffee at midnight! :blush:

linksys:

Looks like oscommerce already has this module using API: http://www.oscommerce.com/community/contributions,1498

It's open source so perhaps somebody could migrate it to ZenCart. :clap:

21 Apr 2008, 5:31 AM
#276
kehrli avatar

kehrli

Zen Follower

Join Date:
Aug 2007
Location:
Cannon Beach, OR
Posts:
180
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Just a tidbit of data for qhome:

I've been using Autofill just fine the last few days. Tonight, out of 3 labels, one of them gave me the error page. It went like this:

I pressed the Autofill button and got the first USPS page OK, with names and addresses filled in correctly. But when I continued to the next page (that should let me select my service option), I got a blank page with "Error" in the upper left corner. I tried with this label twice.

I then tried the next label in my list, and it worked normally. When I got to USPS "label cart", all of my labels were there, including 2 labels for the guy that generated the error page above. The labels were generated, but didn't have a service option, and I had to edit one of the labels to select Priority Mail. Otherwise it was fine.

So, I'm mostly still able to use Autofill. Hoping this helps isolate the error.

21 Apr 2008, 10:41 AM
#277
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: usps.com Click-n-ship AutoFill Button Contrib

Thanks for the update Kehril, I have still unfortunately not be able to get any labels sent successfully with the contrib.. tried diff browsers on diff pc's and tried clearing the cache.. but no luck.

I have also been looking at the FF extensions idea. It looks like it might be possible to do, but I will learn more today when I have time to really spend on it.

21 Apr 2008, 11:52 AM
#278
kehrli avatar

kehrli

Zen Follower

Join Date:
Aug 2007
Location:
Cannon Beach, OR
Posts:
180
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

That's funny that it's working for me (mostly), and not for you. I'm running ZenCart 1.3.7.1. You must be using 1.3.8.x. The problem may be findable in the difference between the two versions of your module.

Anyway, good luck. Let me know if you need any testing done or the like.

21 Apr 2008, 2:17 PM
#279
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: usps.com Click-n-ship AutoFill Button Contrib

I am also using 1.3.7.1. There are also no differences in the module file for usps autofill contrib. Only the admin/orders.php file.

21 Apr 2008, 2:43 PM
#280
foilman avatar

foilman

New Zenner

Join Date:
May 2006
Posts:
51
Plugin Contributions:
0

Re: usps.com Click-n-ship AutoFill Button Contrib

Do we know if we will be able to get this working anytime soon? I have 53 lables to create today and ealize now how dependant I actually am on this module :) :(

Hoping I do not have to go back to typing them all out :frusty: