Off to tell my developer. Thanks!
Off to tell my developer. Thanks!
USPS FIX for usps_autofill_button.php
http://www.cheaptechguy.com/zenFix/u...button.php_fix
Please note there are some changes outside just updating the field ID's.
USPS now requires a First & Last name in both Shipper and Destination addresses.
For the Shippers First & Last name, I hard coded "Shipping Department". You can change that to whatever you like.
<input type="hidden" name="form.returnFirstName" value="Shipping" id="form.returnFirstName">
<input type="hidden" name="form.returnLastName" value="Department" id="form.returnLastName">
As for the destination, Zen Combines the users Name in the orders table. Instead of reworking Zen Cart I delimited it using:
TRIM(TRAILING substring_index(delivery_name,' ', -1) from delivery_name) as delivery_firstname
,
substring_index(delivery_name,' ', -1) as delivery_lastname,
Since the name on the Shipping label combines it back when printed, it should not show any different to the customer.
Please let me know if there are any issues.
Last edited by CrashWolf; 19 Mar 2012 at 08:05 PM. Reason: added link for fixed code
Thank you very, very much. This mod is next to the heart of Zencart. Very important to us small business. Sure hope you claim the mod and provide further improvements.
If USPS get their server back up I would test this out both domestic and international.
Another question does this mod break the security on 1.5.0?
Thanks again,
Thanks for your compliment.
I can not confirm if the unaltered version was compliant with 1.5.0, however nothing was added that would further the risk IMO. Really the only thing that was modified is the pointers to the fields. USPS was really brilliant in changing all the id's without warning.
-1 Karma for USPS
CrashWolf, thanks for your efforts on this!
Seems to be working for me for domestic, although the recipient's email address is not propagating to the usps site. I think it used to do that before.
For an international shipment it looks like it is populating with the right values, but USPS has troubles with it anyway. I think it's a problem on their end:
The Address Book service is experiencing technical difficulty. Please try again.
--
Author of Stock vs. Sales Report
I get this error:
The Address Book service is experiencing technical difficulty. Please try again.
Please enter and/or complete your Shipping From ZIP Code™.
I can enter a label by hand and I do not get that error
Bookmarks