USPS FIX for usps_autofill_button.php
http://www.cheaptechguy.com/zenFix/usps_autofill_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.