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,990

Results 581 to 600 of 827
19 Mar 2012, 11:07 PM
#581
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
125
Plugin Contributions:
0

usps.com Click-n-ship AutoFill Button Contrib

Thank you, CrashWolf.

I'm almost there, but I have same problem as johnniejetski under ZC v1.3.9h.:oops:

"Please enter and/or complete your Shipping From ZIP Code™."

19 Mar 2012, 11:22 PM
#582
johnniejetski avatar

johnniejetski

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

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

I am also using 1.3.9h

20 Mar 2012, 1:20 AM
#583
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

siliconbug:

Thank you, CrashWolf.

I'm almost there, but I have same problem as johnniejetski under ZC v1.3.9h.:oops:

"Please enter and/or complete your Shipping From ZIP Code™."

I am also getting this error and was on phone with USPS around 7:30pm and she told me their server are going up and down. Should wait until tomorrow morning, S/B fixed then. Bottom line-- is it 1.3.9 or their servers. I think I will try 1.5.0 and see what happens using that version.
Another question what do you have Config/USPS in the zip code part set at? same or other
I don't know if this is still an issue or not?

20 Mar 2012, 1:35 AM
#584
cobraplant avatar

cobraplant

Zen Follower

Join Date:
Oct 2007
Posts:
101
Plugin Contributions:
0

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

I'm using 1.5, and I'm getting the same errors as those using 1.3.9.

20 Mar 2012, 7:06 AM
#585
janisl avatar

janisl

New Zenner

Join Date:
Mar 2012
Posts:
6
Plugin Contributions:
0

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

Thanks for the fix. I got rid of the "zip code error" by deleting this part of the script pertaining to shipping from another zip code.


<input type="hidden" name="form.shipFromAnotherZipCode" value="true" id="cShipDiffZip"> <input type="hidden" name="form.otherZipCode" value="<?php echo USPS_DELIVERY_OTHER_ZIPCODE; ?>" id="tShippingZip"> <?php } elseif (USPS_DELIVERY_SAME_ZIPCODE != 'same') { ?> <input type="hidden" name="form.shipFromAnotherZipCode" value="true" id="cShipDiffZip"> <input type="hidden" name="form.otherZipCode" value="<?php echo USPS_DELIVERY_OTHER_ZIPCODE; ?>" id="tShippingZip">

It all works fine now, except for the aforementioned failure of the customer's email address to fill in automatically. But that's a small concern compared to having to fill the entire thing in line-by-line.

Thanks again!

20 Mar 2012, 9:03 AM
#586
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

JanisL:

Thanks for the fix. I got rid of the "zip code error" by deleting this part of the script pertaining to shipping from another zip code.


<input type="hidden" name="form.shipFromAnotherZipCode" value="true" id="cShipDiffZip"> <input type="hidden" name="form.otherZipCode" value="<?php echo USPS_DELIVERY_OTHER_ZIPCODE; ?>" id="tShippingZip"> <?php } elseif (USPS_DELIVERY_SAME_ZIPCODE != 'same') { ?> <input type="hidden" name="form.shipFromAnotherZipCode" value="true" id="cShipDiffZip"> <input type="hidden" name="form.otherZipCode" value="<?php echo USPS_DELIVERY_OTHER_ZIPCODE; ?>" id="tShippingZip">

It all works fine now, except for the aforementioned failure of the customer's email address to fill in automatically. But that's a small concern compared to having to fill the entire thing in line-by-line.

Thanks again!

Sorry if this is long but here is what I have found:

I still have major problems with going to "next page" (select shipping type) after the first page has been filled in. Auto-Fill work perfectly in Login and filling the page with data but that where it all goes wrong after clicking the next button to select type of shipping method. I keep getting errors that their system is experencing problems.... I also just tried JanisL suggestion doesent fix anything for me. I have ran many hours of test every way I can think of and still no go.

Here is what I have discovered. When you click on the USPS button zencart will fill in the Ship From address (User Profile) after Login. USPS has some way to tell where the Ship from address comes from. I have caught a java error that says:
://cns.usps.com/go/Secure/LabelInformat....form.labelId=nul&validationFailed=True#

If you let USPS pull the Ship From information from your USPS account this set the form where you can paste in all information or manually fill or pull from address book and it will process correctly.

Then on the email address I have found when Beyond Comparing Source Code that on line 1073 here is code of page that was Auto-filled in:

<div id="addressToColOne" class="column addressToColumn"> <input type="hidden" name="form.deliveryPhoneId" value="" id="deliveryPhoneId"/> <input type="hidden" name="form.deliveryFaxId" value="" id="deliveryFaxId"/> <input type="hidden" name="form.deliveryEmailId" value="[email protected]" id="deliveryEmailId"/> <input type="hidden" name="form.deliveryAddressId" value="" id="deliveryAddressId"/> <input type="hidden" name="form.deliveryContactId" value="" id="deliveryContactId"/>

Here is the code of page manually filled in:

<div id="addressToColOne" class="column addressToColumn"> <input type="hidden" name="form.deliveryPhoneId" value="-1" id="deliveryPhoneId"/> <input type="hidden" name="form.deliveryFaxId" value="-1" id="deliveryFaxId"/> <input type="hidden" name="form.deliveryEmailId" value="-1" id="deliveryEmailId"/> <input type="hidden" name="form.deliveryAddressId" value="-1" id="deliveryAddressId"/> <input type="hidden" name="form.deliveryContactId" value="-1" id="deliveryContactId"/>

Notice manually filled in page values are set to "-1" and Auto-Fill are set to actual value.

I suggest you load in a page that was filed in by USPS auto fill and another page that has manually filed in then using Beyond Compare you will see a big difference from top to bottom.
Example of Auto Fill page this line <input type="text" name="form.deliveryLastName" maxlength="50" value="MacDonald" tabindex="0" id="tNameLastTo" class="text-input-large name-or-company"/>
Compared to same line when manually filled in: <input type="text" name="form.deliveryLastName" maxlength="50" value="" tabindex="0" id="tNameLastTo" class="text-input-large name-or-company"/>

Notice that all the values are "" on the manually filed in page and on the Auto-Filled page will have values filled in as above"MacDonald"

I found this at the bottom of page that may be what is preventing Auto-Fill.

<!-- START OF SmartSource Data Collector TAG -->
<!-- Copyright (c) 1996-2011 WebTrends Inc.  All rights reserved. -->
<!-- Version: 9.3.0 -->
<!-- Tag Builder Version: 3.1  -->
<!-- Created: 3/28/2011 6:24:05 PM -->

<script src="/go/js/webtrends.js" type="text/javascript"></script>

This may also be involved taken from blank page just been logged in.

<script type="text/javascript"> dojo.require("usps.login.user"); USPS.User=new usps.login.user(); USPS.User.initialize(); var isLoggedIn = true; USPS.User.isLoggedIn = isLoggedIn; dojo.require("usps.utils.session"); var sessionTimer = new usps.utils.session(); sessionTimer.addSessionRefreshTimer(); USPS.User.profile = { title : "",firstName : "SHIPPING",middleInitial : "",lastName : "DEPARTMENT",suffix : "",name : "EZORB CALCIUM COM LLC",addressLine1 : "3527 HYDE PARK AVE STE 100",addressLine2 : "",addressLine3 : "",city : "MIDLAND",stateProvince : "TX",postalCode : "79707-5713",countryName : "UNITED STATES",countryISOCode : "840",urbanizationCode : "",email : "[email protected]",phoneNumber : "",businessPhoneNumber : "4326897272",faxNumber : "4326149800"}; </script>

So it may be if there is some way to prevent USPS Auto-Fill from logging and allow USPS to login their User Profile then send order information it may work. Cause it appears they are using a complicated Script to prevent someone hacking and pasting in information so they have gone to great ex streams to prevent Auto-Fill. Sure hope I am wrong on not getting this to work.

20 Mar 2012, 9:22 AM
#587
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

The problem is that USPS is assigning labelId and packageId when the page is loaded and you cannot deviate. At first I thought these were just random to differentiate items in the cart and could be rand() but that didn't work. I've even tried re-using not yet filled in numbers with neg results. Looks like it's API time only...

P.S... If you mess around you will want this url, trust me :)
https://cns.usps.com/go/Secure/ShoppingCartAction_doAjaxDeleteCart

20 Mar 2012, 10:34 AM
#588
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

Taking a break and coming back with fresh eyes can fix everything. Please find attached an updated zip with a WORKING version :) This makes use of the USPS address book function, you will need to enter your return address into your address book so that it is auto-filled automagically. I would also suggest changing "Delivery: Default Shipping from Same ZipCode (Radio Button)" to "same" as you no longer need to create a form error. I also updated the country strings correcting/add some 243 changes.

20 Mar 2012, 11:50 AM
#589
crashwolf avatar

crashwolf

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

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

ses707:

Taking a break and coming back with fresh eyes can fix everything. Please find attached an updated zip with a WORKING version :) This makes use of the USPS address book function, you will need to enter your return address into your address book so that it is auto-filled automagically. I would also suggest changing "Delivery: Default Shipping from Same ZipCode (Radio Button)" to "same" as you no longer need to create a form error. I also updated the country strings correcting/add some 243 changes.

Thx for removing my name for my contribution to the update in the file.:censored:

20 Mar 2012, 12:55 PM
#590
johnniejetski avatar

johnniejetski

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

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

if i remove the click on the radio button for SHIPPING FROM ANOTHER ZIP CODE, it gives the error. If I fill in a different zip code, it works... So right now I have to hand fill a false zip code on each order

20 Mar 2012, 12:58 PM
#591
johnniejetski avatar

johnniejetski

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

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

Also, I ship from 2 different websites and it is automagically filling in all FROM addresses to the default website return address. I need it to use the return address and name from my Zencart admin account

20 Mar 2012, 1:01 PM
#592
emeraldspread avatar

emeraldspread

New Zenner

Join Date:
Mar 2012
Posts:
2
Plugin Contributions:
0

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

Thanks for making this update - you just saved me an hour of entering addresses!

With this update and the new USPS site, everything actually works better.

I was informed of this change back in December. I received an email from them because I had participated in surveys I guess.

Only thing is, anyone figure out how to make a change to the USPS address book and have it reflect that change? I am referring specifically to the return address. It won't auto add my company name to the return address.

20 Mar 2012, 1:03 PM
#593
emeraldspread avatar

emeraldspread

New Zenner

Join Date:
Mar 2012
Posts:
2
Plugin Contributions:
0

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

Yes, that is the same problem I am having - I would like it to use the return address from ZenCart.

20 Mar 2012, 1:18 PM
#594
janisl avatar

janisl

New Zenner

Join Date:
Mar 2012
Posts:
6
Plugin Contributions:
0

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

Hello again - I'm back to report that I'm going to revert back to the original non-functioning USPS autofill file due to customers getting the following message during checkout:

"We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use. If you prefer to use USPS as your shipping method, please contact us for assistance. (Please check that your Zip Code is entered correctly.)"

The orders are able to go through fine if they proceed with checkout (b/c I use a flat rate shipping fee and do not need USPS to provide a shipping quote), but it's annoying for customers to get that message as they then send me an email asking what the problem is, etc.

Not sure what in particular is causing that error message, but I used the modified file as originally provided and the one w/my add'l edits. I got the error message with both.

20 Mar 2012, 5:24 PM
#595
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

JanisL:

Hello again - I'm back to report that I'm going to revert back to the original non-functioning USPS autofill file due to customers getting the following message during checkout:

"We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use. If you prefer to use USPS as your shipping method, please contact us for assistance. (Please check that your Zip Code is entered correctly.)"

The orders are able to go through fine if they proceed with checkout (b/c I use a flat rate shipping fee and do not need USPS to provide a shipping quote), but it's annoying for customers to get that message as they then send me an email asking what the problem is, etc.

Not sure what in particular is causing that error message, but I used the modified file as originally provided and the one w/my add'l edits. I got the error message with both.

I am confused with your post. What does Click-N-Ship have to do with your customer getting email and shipping flat rate? I have made the latest change and set the default to "same" now Click-N-Ship works better than it has before with no errors. Please explain in more detail how your customers are getting message about Zip Code.

20 Mar 2012, 5:36 PM
#596
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

ses707:

Taking a break and coming back with fresh eyes can fix everything. Please find attached an updated zip with a WORKING version :) This makes use of the USPS address book function, you will need to enter your return address into your address book so that it is auto-filled automagically. I would also suggest changing "Delivery: Default Shipping from Same ZipCode (Radio Button)" to "same" as you no longer need to create a form error. I also updated the country strings correcting/add some 243 changes.

Many Thanks ses707 and CrashWolf -- So far works better than it ever did. Now to see if it works (functions) in 1.5.0 and it should. Do you know if the code now or before broke the security side of 1.5.0? Not knowing php that well I can't tell. This is the only mod I don't know about that I use. It was functioning fine on 1.50 before USPS brilliant move but did not know if it broke security even though it worked.

20 Mar 2012, 6:51 PM
#597
janisl avatar

janisl

New Zenner

Join Date:
Mar 2012
Posts:
6
Plugin Contributions:
0

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

Sorry for the confusion in my post #594. Please ignore that content. I'm back to inputting my customers' address info manually on the USPS website. :frusty:

20 Mar 2012, 7:43 PM
#598
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

JanisL:

Sorry for the confusion in my post #594. Please ignore that content. I'm back to inputting my customers' address info manually on the USPS website. :frusty:

There is a zen mod where you can export order/customer information into excel and then import into the USPS address book.

20 Mar 2012, 8:50 PM
#599
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

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

First off, thanks to all of you for figuring out the solution. It's a big help to many of us, greatly appreciated!

I've packaged the files in an "official" module that I will upload to the main contribution page (so others can easily find it).

This version includes the latest usps_autofill_button.php file, as well as adjustments to orders.php to include the latest security fixes for zc1.3.9 and zc1.5.0. I also cleaned up the install/read me instructions.

As far as I can tell, it works flawlessly. Please check it out and let me know if there are any issues. If not, I'll upload to the Add-ons section.

http://jtwebsitedesign.net/zen/USPS.com%20Auto-fill-v1.5.zip

20 Mar 2012, 9:13 PM
#600
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

CrashWolf:

Thx for removing my name for my contribution to the update in the file.:censored:
Contribs go in final packaged addons, this is MY single working file, I removed several outdated and incorrect items, and did not take credit... Be happy it works and get over it!

johnniejetski:

if i remove the click on the radio button for SHIPPING FROM ANOTHER ZIP CODE, it gives the error. If I fill in a different zip code, it works... So right now I have to hand fill a false zip code on each order
You must change it to "same", might as well remove the invalid zip, with the last attachment it should work fine, others have verified it does.

johnniejetski:

Also, I ship from 2 different websites and it is automagically filling in all FROM addresses to the default website return address. I need it to use the return address and name from my Zencart admin account
I don't have any clients running multi-store on ZC anymore, all got smart and moved to Magento for that. I see the problem, it could be fixed with more time, time=money.

emeraldspread:

Thanks for making this update - you just saved me an hour of entering addresses!

With this update and the new USPS site, everything actually works better.

I was informed of this change back in December. I received an email from them because I had participated in surveys I guess.

Only thing is, anyone figure out how to make a change to the USPS address book and have it reflect that change? I am referring specifically to the return address. It won't auto add my company name to the return address.
You're welcome! To change your address book entry go to USPS.com Hi, YourName at the top right and hit the My Profile link. You will be taken to the Edit Profile page where you can setup the defaults.

emeraldspread:

Yes, that is the same problem I am having - I would like it to use the return address from ZenCart.
I don't have any clients running multi-store on ZC anymore, all got smart and moved to Magento for that. I see the problem, it could be fixed with more time, time=money.

JanisL:

Hello again - I'm back to report that I'm going to revert back to the original non-functioning USPS autofill file due to customers getting the following message during checkout:

"We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use. If you prefer to use USPS as your shipping method, please contact us for assistance. (Please check that your Zip Code is entered correctly.)"

The orders are able to go through fine if they proceed with checkout (b/c I use a flat rate shipping fee and do not need USPS to provide a shipping quote), but it's annoying for customers to get that message as they then send me an email asking what the problem is, etc.

Not sure what in particular is causing that error message, but I used the modified file as originally provided and the one w/my add'l edits. I got the error message with both.
You're doing something very wrong if USPS auto-fill is causing a problem on the frontend!

EZorb:

I am confused with your post. What does Click-N-Ship have to do with your customer getting email and shipping flat rate? I have made the latest change and set the default to "same" now Click-N-Ship works better than it has before with no errors. Please explain in more detail how your customers are getting message about Zip Code.
Correct!

EZorb:

Many Thanks ses707 and CrashWolf -- So far works better than it ever did. Now to see if it works (functions) in 1.5.0 and it should. Do you know if the code now or before broke the security side of 1.5.0? Not knowing php that well I can't tell. This is the only mod I don't know about that I use. It was functioning fine on 1.50 before USPS brilliant move but did not know if it broke security even though it worked.
You're welcome! You are probably referring to the order page, get beyond compare and use it! This addon itself does nothing security wise. Or drop down a few and use the packaged addon JT made.

JanisL:

Sorry for the confusion in my post #594. Please ignore that content. I'm back to inputting my customers' address info manually on the USPS website. :frusty:
Why would you do it manual when auto works?!

jackie.taferner:

First off, thanks to all of you for figuring out the solution. It's a big help to many of us, greatly appreciated!

I've packaged the files in an "official" module that I will upload to the main contribution page (so others can easily find it).

This version includes the latest usps_autofill_button.php file, as well as adjustments to orders.php to include the latest security fixes for zc1.3.9 and zc1.5.0. I also cleaned up the install/read me instructions.

As far as I can tell, it works flawlessly. Please check it out and let me know if there are any issues. If not, I'll upload to the Add-ons section.

http://jtwebsitedesign.net/zen/USPS.com%20Auto-fill-v1.5.zip
More could be done to accomodate multi-store and wanting to use admin stored return addresses, and there's an unhappy credit camper (see first re:), otherwise good job, will make it much easier for the less php competent store owners.