Page 1 of 2

USPS first class shipping options

Posted: Mon Sep 04, 2017 11:34 am
by content808
Apparently first class shipping has been renamed so now the USPS module will not return a price for first class. Anyone know how to fix this? it will not quote for anything under 16 OZ . its now called first class package service.

Re: USPS first class shipping options

Posted: Mon Sep 04, 2017 9:15 pm
by yodapt
Try with the VQMod file in attachment.

Re: USPS first class shipping options

Posted: Tue Sep 05, 2017 12:17 pm
by content808
got this error

---------- Date: 2017-09-04 18:06:49 ~ IP : 98.151.5.130 ----------
REQUEST URI : /admin/index.php?route=extension/modification&token=DdwDRMTlqTzJ0UdKFSupDylA5hZ5nivG
MOD DETAILS:
modFile : /home/anipins/public_html/vqmod/xml/vqmod_usps_fix.xml
id : USPS fix
version : 1.0
vqmver : 2.x
author : yodapt
VQModObject::parseMods - Could not resolve path for [catalog/model/extension/shipping/usps.php,catalog/model/shipping/usps.php] (SKIPPED)

----------------------------------------------------------------------


---------- Date: 2017-09-04 18:14:28 ~ IP : 98.151.5.130 ----------
REQUEST URI : /index.php?route=checkout/checkout
MOD DETAILS:
modFile : /home/anipins/public_html/vqmod/xml/vqmod_usps_fix.xml
id : USPS fix
version : 1.0
vqmver : 2.x
author : yodapt
VQModObject::parseMods - Could not resolve path for [catalog/model/extension/shipping/usps.php,catalog/model/shipping/usps.php] (SKIPPED)

----------------------------------------------------------------------

Re: USPS first class shipping options

Posted: Tue Sep 05, 2017 7:33 pm
by yodapt
That wasnt an error, but anyway, the attached version doesnt produce that entry in the log.

Re: USPS first class shipping options

Posted: Fri Sep 08, 2017 2:38 am
by bobb
I had this problem also, running 1.5.6. Using the vqMod file as a guide, I went into this folder: catalog/model/shipping/ and edited the "usps.php" file, replacing the single instance of "First-Class Mail Parcel" with "First-Class Package Service - Retail". Worked perfectly.

Re: USPS first class shipping options

Posted: Tue Sep 12, 2017 5:13 am
by mastersconi
I tried editing the "usps.php" file, replacing the single instance of "First-Class Mail Parcel" with "First-Class Package Service - Retail". I still can't get the first class option to show at checkout..

Any other ideas?

Re: USPS first class shipping options

Posted: Tue Sep 12, 2017 6:33 pm
by goodejuice
mastersconi wrote:
Tue Sep 12, 2017 5:13 am
I tried editing the "usps.php" file, replacing the single instance of "First-Class Mail Parcel" with "First-Class Package Service - Retail". I still can't get the first class option to show at checkout..

Any other ideas?
Same problem I am having. Edit the file and no luck. Tried the vQmod too and no luck. Still no first class option in checkout.

Re: USPS first class shipping options

Posted: Thu Sep 14, 2017 11:16 am
by mastersconi
Just realized that there are 2 files that need to change:

catalog/model/extension/shipping/usps.php,
catalog/model/shipping/usps.php

After doing this first class shipping now displays correctly. However it displays on the bottom of the shipping list after priority and express...
How do I move it to the top?

Re: USPS first class shipping options

Posted: Sat Nov 03, 2018 1:28 am
by dcol
Made the changes and does not appear for me. This post is a year old. Did USPS change the name again?

Re: USPS first class shipping options

Posted: Tue Nov 13, 2018 12:14 pm
by Johnny2017
Just updated both .php files and it worked.

Does anyone know of an OCmod for this???

Mahalo

Re: USPS first class shipping options

Posted: Wed Nov 14, 2018 4:56 am
by Johnny2017
dcol wrote:
Sat Nov 03, 2018 1:28 am
Made the changes and does not appear for me. This post is a year old. Did USPS change the name again?
Did you change both files?

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 4:49 am
by sidotij
having the same issue in the usps module
I did edit usps.php in ../catalog/model/extension/shipping but I do not see a ../catalog/model/shipping/usps.php

I'm not having a lot of luck at this time.. has anyone solved this?

John

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 5:56 am
by straightlight
I did edit usps.php in ../catalog/model/extension/shipping but I do not see a ../catalog/model/shipping/usps.php
Try: catalog/model/extension/shipping/usps.php file and ensure to edit the path accordingly from the VQMod file (if applies).

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 6:25 am
by sidotij
I replaced First-Class Mail Parcel with First-Class Package Service - Retail (as written in the XML
Here is the array text from catalog/model/extension/shipping/usps.php

Code: Select all

					$firstclasses = array (
						'First-Class Package Service - Retail',
						'First-Class Mail Large Envelope',
						'First-Class Mail Stamped Letter',
						'First-Class Mail Postcards'
					);

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 8:37 am
by straightlight
sidotij wrote:
Mon Feb 25, 2019 6:25 am
I replaced First-Class Mail Parcel with First-Class Package Service - Retail (as written in the XML
Here is the array text from catalog/model/extension/shipping/usps.php

Code: Select all

					$firstclasses = array (
						'First-Class Package Service - Retail',
						'First-Class Mail Large Envelope',
						'First-Class Mail Stamped Letter',
						'First-Class Mail Postcards'
					);
What are the results since?

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 10:36 am
by sidotij
Straightlight:

at this time I am not seeing the correct options for First-Class Package Service - Retail as an option when I attempt to check out
I've reverted usps.php to First-Class Mail Parcel and I am not seeing that as an option either

I'm open to suggestions

John

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 10:20 pm
by straightlight
sidotij wrote:
Mon Feb 25, 2019 10:36 am
Straightlight:

at this time I am not seeing the correct options for First-Class Package Service - Retail as an option when I attempt to check out
I've reverted usps.php to First-Class Mail Parcel and I am not seeing that as an option either

I'm open to suggestions

John
OC version?

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 10:45 pm
by sidotij
Version 3.0.3.1

Re: USPS first class shipping options

Posted: Mon Feb 25, 2019 11:09 pm
by straightlight
I would suggest to address this issue on GitHub since you are using the v3.0.3.1 release as this seem to be an on-going issue with USPS options.

Re: USPS first class shipping options

Posted: Tue Feb 26, 2019 12:13 am
by sidotij
thanks for taking the time to look Straightlight

Filed #7229 in github