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

usps.com Click-n-ship AutoFill Button Contrib

Results 1 to 20 of 827
12 Sep 2006, 19:53
#1
qhome avatar

qhome

Totally Zenned

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

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!
13 Sep 2006, 12:58
#2
qhome avatar

qhome

Totally Zenned

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

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
13 Sep 2006, 21:42
#3
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Posts:
1,437
Plugin Contributions:
3

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

This is the best thing since sliced bread!!!

I thought was the Tabbed Lite module. :lookaroun
13 Sep 2006, 22:35
#4
qhome avatar

qhome

Totally Zenned

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

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

ideasgirl:

I thought was the Tabbed Lite module. :lookaroun


Well that depends on how much you like sliced bread :P
16 Sep 2006, 15:20
#5
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

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

... and which side of the pond you are ;)
16 Sep 2006, 17:20
#6
qhome avatar

qhome

Totally Zenned

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

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

lol true. This contrib would be more useful to the westerners :)
17 Sep 2006, 06:00
#7
castylx avatar

castylx

New Zenner

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

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
18 Sep 2006, 20:31
#8
qhome avatar

qhome

Totally Zenned

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

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

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.
19 Sep 2006, 07:00
#9
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Posts:
554
Plugin Contributions:
1

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?
20 Sep 2006, 03:07
#10
etoile03 avatar

etoile03

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

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..
20 Sep 2006, 05:54
#11
flyguygj avatar

flyguygj

New Zenner

Join Date:
May 2005
Posts:
2
Plugin Contributions:
0

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

I also have not been able to get usps.com autofill to work in Firefox or Safari. I use a mac, which makes it sort of a difficult contrib to use. It sounds awesome though.
20 Sep 2006, 11:09
#12
qhome avatar

qhome

Totally Zenned

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

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

flyguygj:

I also have not been able to get usps.com autofill to work in Firefox or Safari. I use a mac, which makes it sort of a difficult contrib to use. It sounds awesome though.


Yea, Im noticing FF doesn't like my auto form submit and all attempts to make it happy have failed for some reason. I haven't tried safari tho. I dont have a mac. It does however work with IE and Opera perfectly. I will keep trying to find a fix for FF.
20 Sep 2006, 16:17
#13
qhome avatar

qhome

Totally Zenned

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

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

NEW RELEASE!

V0.2
  • Reduced the db query to only include the fields used
  • Fixed one potential bug with country matching.
  • Changed the button structure a bit.
  • Added ability to use zen-cart total order weight for weight (thanks castylx for your total weight function)
  • Added ability to create the label from the list order view instead of only the edit view


Thanks to castylx for making the total weight function (i've added your name to the read me as the contributor of that function as well as to the top of that file)

Now you can use the total product order weight as the weight for your labels. To use the product weight, simply leave the values for default weight in the admin section blank.
09 Oct 2006, 15:29
#14
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

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

Love this contrib,

however we just recently moved our whole office to using super-orders2.0 along with the packing tracking system for the shipping dept.

So im wondering how hard it is to port your code for orders.php to super_orders.php so that its avalible to my office without them having to go back into the standard orders system..

thanks much
any advice would be great.
09 Oct 2006, 18:19
#15
qhome avatar

qhome

Totally Zenned

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

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

wickedklown:

Love this contrib,

however we just recently moved our whole office to using super-orders2.0 along with the packing tracking system for the shipping dept.

So im wondering how hard it is to port your code for orders.php to super_orders.php so that its avalible to my office without them having to go back into the standard orders system..

thanks much
any advice would be great.


Give it a try:

I've included directions to make your own changes (in case you have any other custom modifications to the current file) as well as a pre-modified one. I used the latest SuperOrders 2.0.

I've also included a pre-modified version using the overlib stuff from the Info at a Glance contrib as well if you are using that one.

Lemme know how it goes :)
09 Oct 2006, 18:50
#16
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

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

qhome:

Give it a try:

I've included directions to make your own changes (in case you have any other custom modifications to the current file) as well as a pre-modified one. I used the latest SuperOrders 2.0.

I've also included a pre-modified version using the overlib stuff from the Info at a Glance contrib as well if you are using that one.

Lemme know how it goes :)


awsome, Thanks so much for the update, im sure alot of people will enjoy this as well as us.

i do use the info at a glance stuff. so i would love to have that connected into super orders as well..

my question is. the file that is super_orders.php overlib which contains that info at a glace code (im assuming). do i have to add the .php extention to it? or what?
I changed that file name to super_orders.php and replaced it on my cart.
It seems to work just fine - however i notice that the BOLD title above the info at a glance links say "TABLE_HEADING_ORDERNUM"
what do i need to do in order to fix this?


please help.
Thanks
Benjamin
09 Oct 2006, 20:39
#17
qhome avatar

qhome

Totally Zenned

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

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

wickedklown:


however i notice that the BOLD title above the info at a glance links say "TABLE_HEADING_ORDERNUM"
what do i need to do in order to fix this?


you need to add:

define('TABLE_HEADING_ORDERNUM', 'Info');

to your admin/includes/languages/english/super_orders.php
12 Oct 2006, 16:08
#18
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
0

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

Nice work, qhome :thumbsup:
12 Oct 2006, 16:40
#19
qhome avatar

qhome

Totally Zenned

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

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

BlindSide:

Nice work, qhome :thumbsup:


Gracias kind sir!
31 Oct 2006, 20:28
#20
keystonewebworks avatar

keystonewebworks

Zen Follower

Join Date:
Oct 2005
Posts:
172
Plugin Contributions:
0

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

The USPS auto fill is great, however typically you can add up to 10 labels in the usps shopping cart… But when using the auto fill, as soon as you try to add another label to the cart, it logs you off the usps website, makes you log back in, and then the label you had previously put in is not there… Is it supposed to be only 1 label at a time, or is a glitch or something that can be fixed?