usps.com Click-n-ship AutoFill Button Contrib
USPS.com Click-N-Ship Auto-Fill for Zen-Cart
Version: v0.1
Date: 12-Sep-2006
Designed for: Zen Cart v1.3.x (may also work on 1.2.x)
This contrib adds a simple, yet highly advanced javscript button to your Admin->Orders page that can automatically take the Shipping Address of that customer and pre-fill the Click-N-Ship form at www.usps.com. A few other people have made previous attempts at this and have failed. This one, however, is working perfectly.
Unlike some other attempts at this, you do not have to be initially logged into your usps.com account to use this. You can complete the form process and the usps.com website will keep the label when it asks you to log in.
This contrib is also completely modular. There is only a one-line change to the
admin/orders.php file to require the module file. And it works with both Domestic and International, Everytime!
Works on all major browsers.
let me know if you have any problems.
Enjoy!
Re: usps.com Click-n-ship AutoFill Button Contrib
Hmm. Any admins out there want to enable this in the downloads area? I uploaded it yesterday but I dont see it yet :( This is the best thing since sliced bread!!! :P
Re: usps.com Click-n-ship AutoFill Button Contrib
Quote:
This is the best thing since sliced bread!!!
I thought was the Tabbed Lite module. :lookaroun
Re: usps.com Click-n-ship AutoFill Button Contrib
Quote:
Originally Posted by ideasgirl
I thought was the Tabbed Lite module. :lookaroun
Well that depends on how much you like sliced bread :P
Re: usps.com Click-n-ship AutoFill Button Contrib
... and which side of the pond you are ;)
Re: usps.com Click-n-ship AutoFill Button Contrib
lol true. This contrib would be more useful to the westerners :)
1 Attachment(s)
Re: usps.com Click-n-ship AutoFill Button Contrib
Hey qhome,
One thing I noticed about this module is that it's unable to gather the total weight information of the order. I snooped around the shopping cart class and found where the total weight is calculated. So I kinda cut and pasted that code and created a new field on the orders table. That new field is field when you enter the admin->orders area. From there I had to edit your usps_autofill_button.php to bypass the default weight value.
Maybe you can use this for your next revision, even add another button in the admin. page so users can choose the "default" weight or the "actual" weight of the order. Anyways here are my mods, hope you can use them!
Here's the files : Attachment 631
Re: usps.com Click-n-ship AutoFill Button Contrib
Quote:
Originally Posted by castylx
Hey qhome,
One thing I noticed about this module is that it's unable to gather the total weight information of the order. I snooped around the shopping cart class and found where the total weight is calculated. So I kinda cut and pasted that code and created a new field on the orders table. That new field is field when you enter the admin->orders area. From there I had to edit your usps_autofill_button.php to bypass the default weight value.
Maybe you can use this for your next revision, even add another button in the admin. page so users can choose the "default" weight or the "actual" weight of the order. Anyways here are my mods, hope you can use them!
Heh yes, I had that thought originally when i released this version but after I worked out a few tweaks I totally forgot about it. I was actually gonna add an admin option to use the Total ZC weight or a custom weight. But thank you for your help, I will add this to the next version that Im releasing to fix one potential bug.
Re: usps.com Click-n-ship AutoFill Button Contrib
Sounds like a great mod! I personally use paypal so I do not have a use for this right now, but that doesn't mean I won't be playing around with this on my test site :)
Question for you - how hard would it be to make something like this.. but for UPS instead?
Re: usps.com Click-n-ship AutoFill Button Contrib
This is great! I'm having a problem though when I click on the autofill button using Firefox. It seems not to load the page. I checked in IE, and it loads the USPS page perfectly. Not sure why this is happening..