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

usps.com Click-n-ship AutoFill Button Contrib

Started by qhome on 12 Sep 2006, 7:53 PM · Views: 225,345

Results 21 to 40 of 827
31 Oct 2006, 9:17 PM
#21
qhome avatar

qhome

Totally Zenned

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

usps.com Click-n-ship AutoFill Button Contrib

keystonewebworks:

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?

Hmm that doesnt happen for me at all.

On the first time, it will pop up a new window and pre-fill the fields for you, click continue and it will take you to the service type select screen (priority, express, etc), then ask you for your login. When you login you should see it is now in your usps cart.

Now you can close this browser window, assuming you keep another copy of this browser open to hold the cookie. Your session (assuming cookies are on) is set to autoclose at usps.com's website in 5-10 minutes I think. Nothing I can do about that of course, but it should still stay logged in during that time.

Now, goto another order in your admin area, and click the autofill button, you should see the pre-filled form again. Click continue and you choose the service again. Now instead of taking you to the login screen, it should just take you to your cart and show your new label as well as the previous one(s).

Be sure you dont have cookies turned off. Tested to be working with IE and Opera. Doesn't work with FF because when FF gets a certain piece of javascript code it doesn't agree with, it craps out. IE and Opera seem to agree with the code just fine.

1 Nov 2006, 6:56 AM
#22
keystonewebworks avatar

keystonewebworks

Zen Follower

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

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

i will try that...THX

Thanks,
KWW

3 Nov 2006, 3:18 AM
#23
dashizna avatar

dashizna

Zen Follower

Join Date:
Mar 2006
Posts:
424
Plugin Contributions:
0

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

Hey see the new program that USPS put out called shipping assistant 3.0?? Do ya think there is a way to get this autofill to work with it??

Here is a link to the USPS shipping assistant.. The only reason that i might want to use it though is for First class shipping methods.

http://www.usps.com/shippingassistant/instructions.htm

We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out https://www.AD-DiscountPerformance.com

3 Nov 2006, 3:59 AM
#24
qhome avatar

qhome

Totally Zenned

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

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

Dashizna:

Hey see the new program that USPS put out called shipping assistant 3.0?? Do ya think there is a way to get this autofill to work with it??

Here is a link to the USPS shipping assistant.. The only reason that i might want to use it though is for First class shipping methods.

http://www.usps.com/shippingassistant/instructions.htm

Ya I just saw that too. Unfortunately I don't know anyway to pass values from webbrowsers to a windows application unless I make a VisualBasic activex browser and use it for some basic automation. That is a bit beyond the point of this contrib tho.

Someone made an order viewer in vb.net but there would need to be a good amount of programming (if it's even possible) to get it to work with that. You'd almost need to make your own app that has the zen-cart orders AND shipping api in the same program.

14 Nov 2006, 4:08 AM
#25
stevens157 avatar

stevens157

New Zenner

Join Date:
Mar 2006
Posts:
24
Plugin Contributions:
0

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

When I click the auto fill button Everyting gets filled n except for my adress information. I am using zen version 1.27 I am in the process of upgrading if that makes a difference. I am also using super orders 2.0 but have applied all of the changes to the super orders.php file. Otherwise this is a great add on.

14 Nov 2006, 4:56 AM
#26
qhome avatar

qhome

Totally Zenned

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

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

stevens157:

When I click the auto fill button Everyting gets filled n except for my adress information. I am using zen version 1.27 I am in the process of upgrading if that makes a difference. I am also using super orders 2.0 but have applied all of the changes to the super orders.php file. Otherwise this is a great add on.

Readme :)

You need to setup your address information in the admin->configurations->usps config area.

14 Nov 2006, 4:03 PM
#27
stevens157 avatar

stevens157

New Zenner

Join Date:
Mar 2006
Posts:
24
Plugin Contributions:
0

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

All I have in the admin -> Configuration -> USPS Auto Fill Config screen is an entry for full name

14 Nov 2006, 4:19 PM
#28
qhome avatar

qhome

Totally Zenned

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

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

stevens157:

All I have in the admin -> Configuration -> USPS Auto Fill Config screen is an entry for full name

Run the "Alternative SQL for USPS.sql" (something like that). You should have 16 entries IIRC

14 Nov 2006, 4:25 PM
#29
stevens157 avatar

stevens157

New Zenner

Join Date:
Mar 2006
Posts:
24
Plugin Contributions:
0

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

I actually went in to the database and the fields where there but not showing in admin so I just entred the appropriate values directly into the databse and it works perfectly. This will save me a ton of time.

14 Nov 2006, 4:37 PM
#30
qhome avatar

qhome

Totally Zenned

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

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

stevens157:

I actually went in to the database and the fields where there but not showing in admin so I just entred the appropriate values directly into the databse and it works perfectly. This will save me a ton of time.

Ya i see i made a mistake in that file too.

Corrected SQL (This will remove any existing errored tables and repopulate with fixed tables):

DELETE FROM configuration_group WHERE configuration_group_title LIKE '%USPS Auto-Fill Config%';
DELETE FROM configuration WHERE configuration_key LIKE 'USPS%';
DELETE FROM configuration WHERE configuration_key LIKE 'USPS%';
INSERT INTO configuration_group VALUES ('', 'USPS Auto-Fill Config', 'USPS Auto-Fill Config', '1', '1');
SELECT @gid := configuration_group_id 
FROM configuration_group where configuration_group_title LIKE 'USPS Auto-Fill Config';
UPDATE configuration_group SET sort_order = @gid WHERE configuration_group_id = @gid;
INSERT INTO configuration VALUES ('', 'Return: Full Name', 'USPS_RETURN_FULLNAME', '', 'Set this to your return address Full Name', @gid, '5', now(), now(), NULL, NULL),
                                 ('', 'Return: Company Name', 'USPS_RETURN_COMPANY_NAME', '', 'Set this to your return address Company Name', @gid, '10', now(), now(), NULL, NULL),
                                 ('', 'Return: Address 1', 'USPS_RETURN_ADDRESSONE', '', 'Set this to your return address street 1', @gid, '15', now(), now(), NULL, NULL),
                                 ('', 'Return: Address 2', 'USPS_RETURN_ADDRESSTWO', '', 'Set this to your return address street 2', @gid, '20', now(), now(), NULL, NULL),
                                 ('', 'Return: City', 'USPS_RETURN_CITY', '', 'Set this to your return address city', @gid, '25', now(), now(), NULL, NULL),
                                 ('', 'Return: State', 'USPS_RETURN_STATE', '', 'Set this to your return address state. NOTE: THIS MUST BE IN A 2 LETTER ABBREVIATED FORMAT (i.e. AZ, KY, MI)', @gid, '30', now(), now(), NULL, NULL),
                                 ('', 'Return: ZipCode', 'USPS_RETURN_ZIPCODE', '', 'Set this to your return address zipcode', @gid, '35', now(), now(), NULL, NULL),
                                 ('', 'Return: Phone Number', 'USPS_RETURN_PHONENUMBER', '', 'Set this to your company phone number for International Shipping. (no dashes: 4041234567)', @gid, '40', now(), now(), NULL, NULL),
                                 ('', 'Delivery: Default Notify via Email', 'USPS_DELIVERY_DEFAULT_EMAIL_NOTIFY', 'true', 'Set this to true if you want the Notify By Email checkbox checked by default', @gid, '45', now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),"),
                                 ('', 'Delivery: Default Contents Value', 'USPS_DELIVERY_DEFAULT_CONTENTS_VALUE', '15.00', 'Set this if you want a default contents value for International shipping', @gid, '50', now(), now(), NULL, NULL),
                                 ('', 'Delivery: Default Weight (Pounds)', 'USPS_DELIVERY_DEFAULT_WEIGHTS_POUNDS', '1', 'Set this to the default weight in pounds. Useful if you sell only one type of item. Leave blank if using the order total weight', @gid, '55', now(), now(), NULL, NULL),
                                 ('', 'Delivery: Default Weight (Ounces)', 'USPS_DELIVERY_DEFAULT_WEIGHTS_OUNCES', '', 'Set this to the default weight in ounces. Useful if you sell only one type of item. Leave blank if using the order total weight', @gid, '60', now(), now(), NULL, NULL),
                                 ('', 'Delivery: Default Shipping from Same ZipCode (Radio Button)', 'USPS_DELIVERY_SAME_ZIPCODE', 'same', 'Set this to same if you want to have your Return Address Zipcode as the default Ship-From zipcode. If set to Other, then enter in your default Ship-From zipcode in the next setting', @gid, '65', now(), now(), NULL, "zen_cfg_select_option(array('same', 'other'),"),
                                 ('', 'Delivery: Default Shipping from Other ZipCode (If Radio Button set to Other)', 'USPS_DELIVERY_OTHER_ZIPCODE', '00000', 'Set the default ZipCode you would like as your Ship-From zipcode. Only if the above setting is set to Other', @gid, '70', now(), now(), NULL, NULL),
                                 ('', 'Delivery: Default Non-Delivery Checkbox (Return-to-Sender)', 'USPS_DELIVERY_DEFAULT_NONDELIVERY', 'Y', 'Set this to Y if you want the checkbox for Return-To-Sender to be checked by default (International Packages Only)', @gid, '75', now(), now(), NULL, "zen_cfg_select_option(array('N', 'Y'),"),
                                 ('', 'Delivery: Default Privacy Acknowledge Checkbox', 'USPS_DELIVERY_DEFAULT_ACKNOWLEDGE', 'on', 'Set this to on if you want the Acknowledge checkbox to be checked by default (International Packages Only)', @gid, '80', now(), now(), NULL, "zen_cfg_select_option(array('off', 'on'),");

Remember, if you are using a db prefix,
change
configuration_group to prefix.configuration_group
configuration to prefix.configuration

5 Dec 2006, 5:39 PM
#31
buzzville avatar

buzzville

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

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

Is there any reason the most recent version of this contribution shouldn't work on ZC 1.3.6? It was working great in 1.3.5, but just wanted to double-check before I try with 1.3.6. Thanks!

5 Dec 2006, 6:20 PM
#32
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

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

Works fine for me after upgrading to 1.3.6

Live and learn... the Zen way.

6 Dec 2006, 1:27 AM
#34
buzzville avatar

buzzville

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

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

qhome:

Working fine here too. What problems are you having with it?

I'm not having problems - yet! I haven't installed it yet on my 1.3.6 - just thought I'd double check that it should be fine before I went ahead and added it. Based on your comments, I'm optimistic that everything will go well! Thanks!

6 Dec 2006, 1:43 PM
#35
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

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

As with any mod that was initially done for an older version, check if it overwrites any 1.3.6 files. If yes, you want to check with winmerge to see what the differences are.

Live and learn... the Zen way.

7 Dec 2006, 1:14 PM
#36
qhome avatar

qhome

Totally Zenned

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

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

mydanilo:

As with any mod that was initially done for an older version, check if it overwrites any 1.3.6 files. If yes, you want to check with winmerge to see what the differences are.

Good point. You can also kinda get a quick feel if the core files haven't been updated since well before the most recent version too. Such happens to be the case for USPS.com Contrib.. but who knows what the future stores :)

31 Dec 2006, 11:05 PM
#37
rcrosier avatar

rcrosier

Zen Follower

Join Date:
Dec 2006
Location:
Vermont
Posts:
128
Plugin Contributions:
0

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

I installed this contrib with Super Orders, but something doesn't quite make sense to me...

It was looking for a field "total_weight" in the ORDERS file. I added it to ORDERS as Decimal 12,4, and it's working, but I'm wondering WHY I didn't have that...

Is there another contrib I need?

VTstuff.com, Quality gifts and products from Vermont.

2 Jan 2007, 12:52 AM
#38
qhome avatar

qhome

Totally Zenned

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

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

rcrosier:

I installed this contrib with Super Orders, but something doesn't quite make sense to me...

It was looking for a field "total_weight" in the ORDERS file. I added it to ORDERS as Decimal 12,4, and it's working, but I'm wondering WHY I didn't have that...

Is there another contrib I need?

Totalweight is part of the USPS contrib install.

2 Jan 2007, 2:08 AM
#39
rcrosier avatar

rcrosier

Zen Follower

Join Date:
Dec 2006
Location:
Vermont
Posts:
128
Plugin Contributions:
0

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

qhome:

Totalweight is part of the USPS contrib install.

Can you point me to that contrib? And what is it for?

I thought that the USPS "shipping module" was all I needed, and it was already part of ZC 1.3.6... Seemed to be working fine.

I cannot find anything on the contributions area.

Thanks!

VTstuff.com, Quality gifts and products from Vermont.

2 Jan 2007, 2:56 AM
#40
qhome avatar

qhome

Totally Zenned

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

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

rcrosier:

Can you point me to that contrib? And what is it for?

I thought that the USPS "shipping module" was all I needed, and it was already part of ZC 1.3.6... Seemed to be working fine.

I cannot find anything on the contributions area.

Thanks!

Hmm You seem to have the two confused.

The USPS Shipping module is just for offering shipping to your customers and that does come with the Official Zen-Cart.

USPS AutoFill contrib is an ADMIN utility that I created to allow easy population of the usps.com click-n-ship website to auto populate the customers information. This contrib includes the totalweight function that is used to calculate total weight for automatic filling of the weight on that same click-n-ship page.

This thread is related to that contrib, not to the zencart built-in usps shipping module.

You can DL the contrib from my signature