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 701 to 720 of 827
14 Oct 2012, 4:44 PM
#701
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

usps.com Click-n-ship AutoFill Button Contrib

TrvlFox:

Actually, I just realized why it wasn't in the admin, that was because I haven't uploaded the files yet. :blush:
So is everything working correctly now that you uploaded the files?

14 Oct 2012, 5:04 PM
#702
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

Ihaven't uploaded the files yet. I wasn't sure if I should do that with those two statements not uploading. I guess I could do that now

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

14 Oct 2012, 5:07 PM
#703
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

All addons you should upload the files and then perform the sql statements.

14 Oct 2012, 5:08 PM
#704
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

I just uploaded my files, but I don't see anything under configuration in admin. However, on my orders, I do see a new button for USPS Auto Fill.

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

14 Oct 2012, 5:09 PM
#705
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

ses707:

All addons you should upload the files and then perform the sql statements.

Oh....
I had followed the instructions:

1.backup, Backup, BACKUP! I won't be held responsible if something goes horribly wrong.

2.Go to Admin->Tools->Install SQL Patches. Install the sql code from the appropriate install.sql (1.3.9 or 1.5.0)

3.If this a new install, you might see a warning about not being able to “drop” a table. You can ignore this error. If you get "Warning An Error occured", then simply refresh the page and the SQL should work.

After the sql is done, verify you have 19 configuration settings under the Configuration->USPS Auto-fill Config admin menu.

4.Upload all files to your server. They are already in proper folder structure.

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

14 Oct 2012, 5:12 PM
#706
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

TrvlFox:

Oh....
I had followed the instructions:

1.backup, Backup, BACKUP! I won't be held responsible if something goes horribly wrong.

2.Go to Admin->Tools->Install SQL Patches. Install the sql code from the appropriate install.sql (1.3.9 or 1.5.0)

3.If this a new install, you might see a warning about not being able to “drop” a table. You can ignore this error. If you get "Warning An Error occured", then simply refresh the page and the SQL should work.

After the sql is done, verify you have 19 configuration settings under the Configuration->USPS Auto-fill Config admin menu.

4.Upload all files to your server. They are already in proper folder structure.
lol, I blame the original addon creator, whatever the case, don't expect something to work without the files uploaded and the sql statements completed. Are you able to run the last two sql statements? They are the ones that allow you to input configuration in the admin.

14 Oct 2012, 5:13 PM
#707
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

Reinstalled SQL patch and still no config showing. Could it be because the last two lines couldn't be uploaded? I'm using Edit Orders and Super Orders

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

14 Oct 2012, 5:14 PM
#708
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

ses707:

lol, I blame the original addon creator, whatever the case, don't expect something to work without the files uploaded and the sql statements completed. Are you able to run the last two sql statements? They are the ones that allow you to input configuration in the admin.

Still not able to do the last two statements :(

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

14 Oct 2012, 5:15 PM
#709
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

TrvlFox:

Still not able to do the last two statements :(
Do you have phpmyadmin in your host panel where you can run the sql?

14 Oct 2012, 5:18 PM
#710
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

ses707:

Do you have phpmyadmin in your host panel where you can run the sql?

Yes. I have a prefix of zen_

Is this correct? And can I just run this part or must I do it from scratch?

UPDATE zen_admin_pages SET sort_order = (SELECT zen_configuration_group_id FROM zen_configuration_group WHERE zen_configuration_group_title = 'USPS AutoFill') WHERE page_key = 'uspsautofill';
UPDATE zen_admin_pages SET page_params = CONCAT('gID=',(SELECT zen_configuration_group_id FROM zen_configuration_group WHERE zen_configuration_group_title = 'USPS AutoFill')) WHERE page_key = 'uspsautofill';

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

14 Oct 2012, 5:19 PM
#711
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

TrvlFox:

Yes. I have a prefix of zen_

Is this correct?

UPDATE zen_admin_pages SET sort_order = (SELECT zen_configuration_group_id FROM zen_configuration_group WHERE zen_configuration_group_title = 'USPS AutoFill') WHERE page_key = 'uspsautofill';
UPDATE zen_admin_pages SET page_params = CONCAT('gID=',(SELECT zen_configuration_group_id FROM zen_configuration_group WHERE zen_configuration_group_title = 'USPS AutoFill')) WHERE page_key = 'uspsautofill';
That is correct.

14 Oct 2012, 6:59 PM
#712
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

It's working! Thank you so much for all your help.

now to get it to document my order with the tracking number.....

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

14 Oct 2012, 8:10 PM
#713
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

TrvlFox:

It's working! Thank you so much for all your help.

now to get it to document my order with the tracking number.....

Ok so the problem was something I had already fixed, only the fix was attached to one of my posts and not the one that got uploaded to the plugins section, doh! The problem was that PayPal DP records the state stupid:
v1.5.1 - Some payment modules enter the delivery state as two characters instead of using the zone code lookup function which caused problems with US addresses.

TY Package tracker is great for documenting the tracking number and sending the customer a notice.

P.S.. Your ZC PM Inbox is full.

14 Oct 2012, 8:42 PM
#714
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

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

Just realized that this service is not valid for first class mail within the US.

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

25 Oct 2012, 3:10 AM
#715
atomiksteve avatar

atomiksteve

New Zenner

Join Date:
Jul 2008
Posts:
43
Plugin Contributions:
0

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

Any idea why this would suddenly stop working? Had it working fine, now it won't pass the customer info to USPS website. I tried reinstalling, and noticed that I only have 8 options in the config menu, not 19 as the instructions state. Any ideas what would cause this?

I am using v1.3.9h

6 Nov 2012, 2:19 PM
#717
guido49 avatar

guido49

New Zenner

Join Date:
Oct 2012
Location:
Natrona Heights, PA
Posts:
23
Plugin Contributions:
0

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

After replying to another thread concerning this, I found this one...hope it's the right place to ask this.

Running ZC v1.5.1. Got the USPS Autofill module installed OK and it functions as advertised with one minor glitch.

I am unable to open the USPS Autofill configuration even though I see it in the Admin config menu. For some reason it opens My Store config instead...???

I did notice that the USPS Autofill link's path shows as mysite.com/store/renamed_admin/configuration.php. All of the other listings have a path with a unique gID at the end, i.e., mysite.com/store/renamed_admin/configuration.php?gID=1.

If I go directly to mysite.com/store/renamed_admin/configuration.php?gID=56 (the SQL group ID #), the USPS Autofill configuration opens fine.

Any ideas of how to change the path of the USPS Autofill link in the Admin config menu? I've triple-checked the database and everything looks to be in order.

Many thanks in advance for any assistance.

If you act like you know what you're doing,
everyone thinks that you do................

7 Nov 2012, 4:52 AM
#718
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

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

guido49:

After replying to another thread concerning this, I found this one...hope it's the right place to ask this.

Running ZC v1.5.1. Got the USPS Autofill module installed OK and it functions as advertised with one minor glitch.

I am unable to open the USPS Autofill configuration even though I see it in the Admin config menu. For some reason it opens My Store config instead...???

I did notice that the USPS Autofill link's path shows as mysite.com/store/renamed_admin/configuration.php. All of the other listings have a path with a unique gID at the end, i.e., mysite.com/store/renamed_admin/configuration.php?gID=1.

If I go directly to mysite.com/store/renamed_admin/configuration.php?gID=56 (the SQL group ID #), the USPS Autofill configuration opens fine.

Any ideas of how to change the path of the USPS Autofill link in the Admin config menu? I've triple-checked the database and everything looks to be in order.

Many thanks in advance for any assistance.

Try running the sql again, it will remove everything related to the addon and load it from scratch. Report back any errors generated when doing this.

8 Nov 2012, 3:38 PM
#719
guido49 avatar

guido49

New Zenner

Join Date:
Oct 2012
Location:
Natrona Heights, PA
Posts:
23
Plugin Contributions:
0

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

Thanks for the reply ses707...I appreciate it.

So-o-o, here's the dealio.

If I run the SQL code from phpMyAdmin, it runs without any errors, but still doesn't allow me to access the configuration page in the Admin section of my store. The USPS Autofill link is still wrong, i.e., has no gID assigned.

If I run the SQL code from Admin --> Tools --> Install SQL Patches, it gives me the infamous 'Warning: an error has occurred' message.

Looking at the debug log file after running the code from Install SQL patches, it has this to say:

[08-Nov-2012 15:01:48 UTC] PHP Fatal error: 1146:Table 'my_sql_database.zen_zen_configuration_group' doesn't exist :: SELECT @gid:=configuration_group_id FROM zen_zen_configuration_group WHERE configuration_group_title LIKE '%USPS Auto-Fill Config%' LIMIT 1; in /home/itzauk5/public_html/store/includes/classes/db/mysql/query_factory.php on line 120

Line 120 of query_factory.php looks like this:

trigger_error($this->error_number . ':' . $this->error_text . ' :: ' . $this->zf_sql, E_USER_ERROR);

Let me say this...I had to modify the original SQL code to include the zen_ prefix as it wouldn't run without errors from phpMyAdmin. Once I added the prefix, it ran OK, but just doesn't give me the ability to configure the module.

If I remove the prefix and run the code, then the debug log file says 'PHP Fatal error: 1146:Table 'my_sql_database.configuration_group' doesn't exist', and trying to run it from Install SQL Patches still gives me the error.

This is becoming very frustrating as I think I have a pretty good idea of what I'm doing, but obviously not a good enough idea. :blink:
As you may have guessed, I'm not a PHP, SQL, or HTML guru.

Any help or ideas you can give me would be very much appreciated, although I guess I could use the workaround I mentioned to configure it if I have to.

If you act like you know what you're doing,
everyone thinks that you do................

8 Nov 2012, 4:00 PM
#720
guido49 avatar

guido49

New Zenner

Join Date:
Oct 2012
Location:
Natrona Heights, PA
Posts:
23
Plugin Contributions:
0

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

By the way, here's the SQL code as it's being run...maybe there's something wrong I just can't seem to see?

SET @gid=0;
SELECT @gid:=configuration_group_id
FROM zen_configuration_group
WHERE configuration_group_title LIKE '%USPS Auto-Fill Config%'
LIMIT 1;
DELETE FROM zen_configuration_group WHERE configuration_group_title LIKE '%USPS Auto-Fill Config%';
DELETE FROM zen_configuration_group WHERE configuration_group_title LIKE '%USPS AutoFill%';
DELETE FROM zen_configuration_group WHERE configuration_group_title LIKE '%USPS AutoFill Config%';
DELETE FROM zen_admin_pages WHERE page_key='uspsautofill';
DELETE FROM zen_configuration WHERE configuration_key LIKE 'USPS_RETURN%' LIMIT 8;
DELETE FROM zen_configuration WHERE configuration_key LIKE 'USPS_DELIVERY%' LIMIT 9;

Insert New USPS AutoFill Configuration Group

INSERT INTO zen_configuration_group VALUES ('', 'USPS AutoFill', 'USPS AutoFill Config', '1', '1');
SET @gid=last_insert_id();
UPDATE zen_configuration_group SET sort_order = @gid WHERE configuration_group_id = @gid;
INSERT INTO zen_configuration VALUES (NULL, 'Return: Tracking Email', 'USPS_RETURN_TRACKING_EMAIL', '', 'Set this to the email address used for receiving tracking updates. ', @gid, '41', now(), now(), NULL, NULL), (NULL, 'Return: Tracking Notify via Email (checkbox)', 'USPS_RETURN_TRACKING_EMAIL_NOTIFY', 'false', 'Set this to true if you want to check the tracking notifications checkbox to receive tracking updates to the email specified.', @gid, '42', now(), now(), NULL, "cfg_select_option(array('true', 'false'),"), (NULL, 'Delivery: Default Notify via Email (checkbox)', '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, "cfg_select_option(array('true', 'false'),"), NULL, 'Delivery: Default Contents Value', 'USPS_DELIVERY_DEFAULT_CONTENTS_VALUE', '', 'Set this to total or subtotal if you want to use that order value for the declaration value, or set this to a price if you want a default contents value for International shipping, or leave blank to not use it', @gid, '50', now(), now(), NULL, NULL), (NULL, 'Delivery: Default Weight (Pounds)',
'USPS_DELIVERY_DEFAULT_WEIGHTS_POUNDS', '', '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), (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), (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, "cfg_select_option(array('same', 'other'),"), (NULL, 'Delivery: Default Shipping from Other ZipCode (If Radio Button set to Other)', 'USPS_DELIVERY_OTHER_ZIPCODE', '', '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), (NULL, 'Delivery: Default Insurance Value', 'USPS_DELIVERY_INSURANCE_VALUE', '', 'Set to total or subtotal if you want to use that order value for the insurance value, or set to a price (i.e. 5.25) if you want to use a preset price. Or leave blank to not use it', @gid, '75', now(), now(), NULL, NULL);

ALTER TABLE zen_orders DROP total_weight;
ALTER TABLE zen_orders ADD total_weight FLOAT NOT NULL DEFAULT '-1';

Register the pages for Admin Access Control

DELETE FROM zen_admin_pages WHERE page_key='uspsautofill';
INSERT INTO zen_admin_pages (page_key,language_key,main_page,page_params,menu_key,display_on_menu,sort_order) VALUES

('uspsautofill','BOX_CONFIGURATION_USPS_AUTOFILL','FILENAME_CONFIGURATION','1','configuration','Y','1');
UPDATE zen_admin_pages SET sort_order = (SELECT configuration_group_id FROM zen_configuration_group WHERE configuration_group_title = 'USPS AutoFill') WHERE page_key = 'uspsautofill';
UPDATE zen_admin_pages SET page_params = CONCAT('gID=',(SELECT configuration_group_id FROM zen_configuration_group WHERE configuration_group_title = 'USPS AutoFill')) WHERE page_key = 'uspsautofill';

If you act like you know what you're doing,
everyone thinks that you do................