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 81 to 100 of 827
22 Jan 2007, 1:55 AM
#81
qhome avatar

qhome

Totally Zenned

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

usps.com Click-n-ship AutoFill Button Contrib

tcustomgolf:

Using the 1.3.7 version and and IE7 and getting an "error on page" when clicking the USPS button...nothing loads, I just stay at the admin page??

Also, as an FYI, I replaced the orders.php, but if you decide not to and do manually, the instructions in the read me does not include this line which is in the replacement orders.php

Does the included orders.php file work with IE7?

22 Jan 2007, 2:07 AM
#82
tcustomgolf avatar

tcustomgolf

Inactive

Join Date:
Dec 2005
Location:
NY
Posts:
162
Plugin Contributions:
0

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

Does the included orders.php file work with IE7?I am using the included order.php with IE7. When the orders page loads in admin, I get the little yellow triangle with the exclamation point in it in the lower left and it says "Done, but with errors on the page". Then when I click the USPS button, same triangle with an "Errors on page." message, and nothing else happens.

Is that normally the message you get on a javascript error?

Custom Golf Clubs - A ZenCart Site!
Get fitted online for a better game!

22 Jan 2007, 11:58 AM
#83
qhome avatar

qhome

Totally Zenned

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

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

tcustomgolf:

I am using the included order.php with IE7. When the orders page loads in admin, I get the little yellow triangle with the exclamation point in it in the lower left and it says "Done, but with errors on the page". Then when I click the USPS button, same triangle with an "Errors on page." message, and nothing else happens.

Is that normally the message you get on a javascript error?

well I get an error on FF only because it doesn't like how i am calling a javascript submit button...It gives "document.getElementById("labelInformationForm") has no properties.
But I haven't found any better way to do it. IE might get the error but usually skips it and continues. Opera also. FF stops on the error and won't continue.

I've tried turning on the IE script debugger, which is supposed to stop the page load and give a popup error if there is an error, it doesn't stop anything. It just works properly. Then I tried viewing the javascript console in Opera while I clicked the button... no error here either.

Try it on another PC. Also verify you do have the includes/modules/usps_autofill_button.php file.

22 Jan 2007, 2:22 PM
#84
tcustomgolf avatar

tcustomgolf

Inactive

Join Date:
Dec 2005
Location:
NY
Posts:
162
Plugin Contributions:
0

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

The usps_autofill_button.php is in:

admin/includes/modules/usps_autofill_button.php

and just did a test here at work (using IE6!!) and same result...errors on page when loading the customers/orders page in admin, and nothing when clicking the button.

I also noticed as stated below that the attached orders.php file, and the manual procedures listed in the .rtf file are different (the orders.php shows four steps included in the file as opposed to 3 in the manual install). I tried the manual version with the same results.

I will go through the install procedures again and make sure all is in place.

Custom Golf Clubs - A ZenCart Site!
Get fitted online for a better game!

22 Jan 2007, 11:00 PM
#85
qhome avatar

qhome

Totally Zenned

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

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

tcustomgolf:

The usps_autofill_button.php is in:

admin/includes/modules/usps_autofill_button.php

and just did a test here at work (using IE6!!) and same result...errors on page when loading the customers/orders page in admin, and nothing when clicking the button.

I also noticed as stated below that the attached orders.php file, and the manual procedures listed in the .rtf file are different (the orders.php shows four steps included in the file as opposed to 3 in the manual install). I tried the manual version with the same results.

I will go through the install procedures again and make sure all is in place.

What version of zen-cart are you using ? Version 0.3 is for zc137, and 0.2 is for zc136. Also, do you have all the DB settings for the contrib correctly? You should see 16 settings under Configuration->USPS Autofill config

I just tested Opera 9, IE6 at work, Opera 9, IE7 at home, and Opera 9, IE6 on my second PC. All worked fine. Can you tell me the error you get when you double click the little yellow shield in the corner?

22 Jan 2007, 11:46 PM
#86
tcustomgolf avatar

tcustomgolf

Inactive

Join Date:
Dec 2005
Location:
NY
Posts:
162
Plugin Contributions:
0

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

Q, running 1.3.7 and using the 0.3 version (though the included sql patch in the downloadable 0.3 mod is v. 0.2b...assuming that is correct?)

All 16 settings are in the admin, the button is displaying fine. Attached gif after double-clicking the yellow shield. Thanks for the help...wouldn't make a fuss, but this is a mod I truly need!!

Custom Golf Clubs - A ZenCart Site!
Get fitted online for a better game!

22 Jan 2007, 11:51 PM
#87
tcustomgolf avatar

tcustomgolf

Inactive

Join Date:
Dec 2005
Location:
NY
Posts:
162
Plugin Contributions:
0

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

And got this message when I went right into an order screen of a customer. The line # is 398 at the top if you cannot read it.

Custom Golf Clubs - A ZenCart Site!
Get fitted online for a better game!

23 Jan 2007, 7:54 PM
#88
qhome avatar

qhome

Totally Zenned

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

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

tcustomgolf:

And got this message when I went right into an order screen of a customer. The line # is 398 at the top if you cannot read it.

FIXED!

Well we fixed it! After much pain and suffering, tcustomgolf set me up with a temporary admin account so I could debug the problems. It turns out he had an apostrophe (') in his return address for his company name and that was tricking the javascript into thinking it was a string terminator.. thus breaking my code :( .

The fix was easy, so anyone else who has any problem with the contrib not working and need to use an apostrophe in your company name, like "Bob's Fun World", simply add a \ right before the ' making it: Bob's Fun World.

The code will use that as an escape character and use the ' as part of the string, but the code will ignore the literal value of \ so it will still display fine.

In the next version I will try to programtically ignore apostrophes by auto-escaping them. But for now we at least got a quick fix.

Glad we got it resolved for you tcustomgolf, and thanks for your help in finding out the problem for future reference.

Enjoy!

23 Jan 2007, 8:36 PM
#89
tcustomgolf avatar

tcustomgolf

Inactive

Join Date:
Dec 2005
Location:
NY
Posts:
162
Plugin Contributions:
0

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

Bingo!

Works great...thanks for sticking with it qhome!!

Custom Golf Clubs - A ZenCart Site!
Get fitted online for a better game!

31 Jan 2007, 8:47 PM
#90
afterglow avatar

afterglow

New Zenner

Join Date:
Jan 2007
Posts:
15
Plugin Contributions:
0

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

any word on the attributes total weight fix? thanks again

12 Feb 2007, 5:13 PM
#91
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

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

hi, i am also having a problem with attribute weight. they arent being picked up at all. and all my products are priced and weighted by attribute. did anyone firgure this out?

thanks!
MM

18 Feb 2007, 5:55 AM
#92
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

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

is there an uninstall script? i installed this for a friend of mine on his shop but he has stopped using USPS and will be using UPS/FedEx from now on due to the amount of lost package.. and I'd like to be able to have that button removed. I know I can delete the files & reupload an original admin/includes/order.php file.. however there are still fields in the database for the contrib. thanks!

18 Feb 2007, 3:35 PM
#93
qhome avatar

qhome

Totally Zenned

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

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

samad64:

is there an uninstall script? i installed this for a friend of mine on his shop but he has stopped using USPS and will be using UPS/FedEx from now on due to the amount of lost package.. and I'd like to be able to have that button removed. I know I can delete the files & reupload an original admin/includes/order.php file.. however there are still fields in the database for the contrib. thanks!

At the very top of the sql file, there should be 2 delete rows. run those two in the sql patch area of zen-cart.

18 Feb 2007, 11:14 PM
#94
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

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

qhome:

At the very top of the sql file, there should be 2 delete rows. run those two in the sql patch area of zen-cart.

nope.. didn't see any delete rows. here's the SQL file I have (latest download):

ALTER TABLE `orders` ADD `total_weight` FLOAT NOT NULL DEFAULT '-1';
INSERT INTO configuration_group VALUES ('', 'USPS Auto-Fill Config', 'USPS Auto-Fill Config', '1', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();
INSERT INTO configuration VALUES ('', 'Return: Full Name', 'USPS_RETURN_FULLNAME', '', 'Set this to your return address Full Name', last_insert_id(), '5', now(), now(), NULL, NULL),
                                 ('', 'Return: Company Name', 'USPS_RETURN_COMPANY_NAME', '', 'Set this to your return address Company Name', last_insert_id(), '10', now(), now(), NULL, NULL),
                                 ('', 'Return: Address 1', 'USPS_RETURN_ADDRESSONE', '', 'Set this to your return address street 1', last_insert_id(), '15', now(), now(), NULL, NULL),
                                 ('', 'Return: Address 2', 'USPS_RETURN_ADDRESSTWO', '', 'Set this to your return address street 2', last_insert_id(), '20', now(), now(), NULL, NULL),
                                 ('', 'Return: City', 'USPS_RETURN_CITY', '', 'Set this to your return address city', last_insert_id(), '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)', last_insert_id(), '30', now(), now(), NULL, NULL),
                                 ('', 'Return: ZipCode', 'USPS_RETURN_ZIPCODE', '', 'Set this to your return address zipcode', last_insert_id(), '35', now(), now(), NULL, NULL),
                                 ('', 'Return: Phone Number', 'USPS_RETURN_PHONENUMBER', '', 'Set this to your company phone number for International Shipping. (no dashes: 4041234567)', last_insert_id(), '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', last_insert_id(), '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', last_insert_id(), '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', last_insert_id(), '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', last_insert_id(), '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', last_insert_id(), '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', last_insert_id(), '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)', last_insert_id(), '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)', last_insert_id(), '80', now(), now(), NULL, "zen_cfg_select_option(array('off', 'on'),");
18 Feb 2007, 11:24 PM
#95
qhome avatar

qhome

Totally Zenned

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

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

whoops.. i think i removed it from v0.3..

DELETE FROM configuration_group WHERE configuration_group_title LIKE '%USPS Auto-Fill Config%';
DELETE FROM configuration WHERE configuration_key LIKE 'USPS_%';
18 Feb 2007, 11:55 PM
#96
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

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

cool.. thanks! one small addition to that:

ALTER TABLE `orders` DROP `total_weight`;

to remove the 'total_weight' stuff too :)

21 Feb 2007, 8:12 PM
#97
qhome avatar

qhome

Totally Zenned

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

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

BUG FOUND:

Based on the information posted in this thread, and also here:
http://www.zen-cart.com/forum/showthread.php?t=58316&highlight=price+attributes

You should notice that I have part of it fixed and hopefully will have the rest of it fixed as well.

This will fix the attribute pricing and tare pricing to be included in the total weight properly

Standby for patch release in the next few days.

21 Feb 2007, 9:01 PM
#98
mitchcecg avatar

mitchcecg

New Zenner

Join Date:
Feb 2007
Posts:
19
Plugin Contributions:
0

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

I get this error when trying to install the sql patch supplied

1264 Out of range value adjusted for column 'configuration_group_id' at row 1
in:
[INSERT INTO dbname_configuration_group VALUES ('', 'USPS Auto-Fill Config', 'USPS Auto-Fill Config', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

this might be helpfull:
In a message from drbyte
"I took the same SQL statement that's failing on MySQL 5 and ran it on a MySQL 4 server, without error.

It seems that MySQL 5 (if running in strict_trans mode) disallows auto-translation from the supplied date data to MySQL date format.

I'm now working on a translator so we send the right format to the database, to accomodate the MySQL 5 enforced standards ..."


you might want to read from the thread below
http://www.zen-cart.com/forum/showthread.php?t=58649&page=2

21 Feb 2007, 9:52 PM
#99
qhome avatar

qhome

Totally Zenned

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

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

mitchcecg:

I get this error when trying to install the sql patch supplied

1264 Out of range value adjusted for column 'configuration_group_id' at row 1
in:
[INSERT INTO dbname_configuration_group VALUES ('', 'USPS Auto-Fill Config', 'USPS Auto-Fill Config', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

this might be helpfull:
In a message from drbyte
"I took the same SQL statement that's failing on MySQL 5 and ran it on a MySQL 4 server, without error.

It seems that MySQL 5 (if running in strict_trans mode) disallows auto-translation from the supplied date data to MySQL date format.

I'm now working on a translator so we send the right format to the database, to accomodate the MySQL 5 enforced standards ..."


you might want to read from the thread below
http://www.zen-cart.com/forum/showthread.php?t=58649&page=2

Ok,
Thanks for the info. I too will try to get you a mysql 5 version of this sql in the meantime.

21 Feb 2007, 10:01 PM
#100
qhome avatar

qhome

Totally Zenned

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

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

@mitchcecg
Try this: MYSQL 5 version Only!

I read that empty quotes '' are supposed to be changed to NULL in strict mode, so I did that. See if that works for you.

INSERT INTO configuration VALUES (NULL, 'Return: Full Name', 'USPS_RETURN_FULLNAME', NULL, 'Set this to your return address Full Name', last_insert_id(), '5', now(), now(), NULL, NULL),
                                 (NULL, 'Return: Company Name', 'USPS_RETURN_COMPANY_NAME', NULL, 'Set this to your return address Company Name', last_insert_id(), '10', now(), now(), NULL, NULL),
                                 (NULL, 'Return: Address 1', 'USPS_RETURN_ADDRESSONE', NULL, 'Set this to your return address street 1', last_insert_id(), '15', now(), now(), NULL, NULL),
                                 (NULL, 'Return: Address 2', 'USPS_RETURN_ADDRESSTWO', NULL, 'Set this to your return address street 2', last_insert_id(), '20', now(), now(), NULL, NULL),
                                 (NULL, 'Return: City', 'USPS_RETURN_CITY', NULL, 'Set this to your return address city', last_insert_id(), '25', now(), now(), NULL, NULL),
                                 (NULL, 'Return: State', 'USPS_RETURN_STATE', NULL, 'Set this to your return address state. NOTE: THIS MUST BE IN A 2 LETTER ABBREVIATED FORMAT (i.e. AZ, KY, MI)', last_insert_id(), '30', now(), now(), NULL, NULL),
                                 (NULL, 'Return: ZipCode', 'USPS_RETURN_ZIPCODE', NULL, 'Set this to your return address zipcode', last_insert_id(), '35', now(), now(), NULL, NULL),
                                 (NULL, 'Return: Phone Number', 'USPS_RETURN_PHONENUMBER', NULL, 'Set this to your company phone number for International Shipping. (no dashes: 4041234567)', last_insert_id(), '40', now(), now(), NULL, 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', last_insert_id(), '45', now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),"),
                                 (NULL, 'Delivery: Default Contents Value', 'USPS_DELIVERY_DEFAULT_CONTENTS_VALUE', '15.00', 'Set this if you want a default contents value for International shipping', last_insert_id(), '50', now(), now(), NULL, 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', last_insert_id(), '55', now(), now(), NULL, NULL),
                                 (NULL, 'Delivery: Default Weight (Ounces)', 'USPS_DELIVERY_DEFAULT_WEIGHTS_OUNCES', NULL, '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', last_insert_id(), '60', now(), now(), NULL, 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', last_insert_id(), '65', now(), now(), NULL, "zen_cfg_select_option(array('same', 'other'),"),
                                 (NULL, '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', last_insert_id(), '70', now(), now(), NULL, 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)', last_insert_id(), '75', now(), now(), NULL, "zen_cfg_select_option(array('N', 'Y'),"),
                                 (NULL, '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)', last_insert_id(), '80', now(), now(), NULL, "zen_cfg_select_option(array('off', 'on'),");