Jump to content

USPS: Always $8.10, no matter the weight?!


Guest satori

Recommended Posts

Guest satori

I've enabled the USPS module, set up my account with them, run a successful test, and I thought it was all cool.

But now, no matter what I select in my cart, it always gives me ONLY these two options:

(USPS Priority Mail Flat Rate Box (11.25" x 8.75" x 6")) $8.10

(USPS Priority Mail Flat Rate Box (14" x 12" x 3.5")) $8.10

We DO want Priority Mail as the only option... But it's not changing the rate to match the weights, large or small.

Anyone have a solution to this?

Thanks in advance.

Link to comment
Share on other sites

Guest Jim Guinn

I'm having the same problem. What is the point of having a USPS Priority Mail option that only calculates the flat rate box???? It makes no sense and is useless.

USPS Priority Mail (when not using flat rate boxes) is normally calculated using the weight, zip code of origin, and destination zip code to get the final shipping rate.

I have searched the forum for an answer, but can't seem to find one...unless I am missing it some where......

Thanks.

Jim

Link to comment
Share on other sites

Guest Jim Guinn

I decided to read everything over and found this. I changed the code as instructed and now USPS Priority Mail is calculating properly.

Thanks, tbladecki! That was a big help.

Jim

___________________________________________________________________

That would be because the min charge for Priority is $4.05 correct?? Or ta least as far as I have even known.

Anyway here is the complete fix for this:

The files listed below are in shipping/USPS folder

In the class.usps.php you have to comment ou the following section:

/*

Taken out to remove restriction on package size



			//Check container for Express and Priority

			if(strtolower($attribs['service']) == 'express' || strtolower($attribs['service']) == 'priority')

			{

				if(!isset($attribs['container'])) {  $this->debug("USPS ERROR: Container for express or priority post 			

				was not set."); return false; }

				else {

					switch(strtolower($attribs['container']))

					{

						case 'flat rate envelope':

						case 'flat rate box':

							break;

						default:

							$this->debug("USPS ERROR: Container not recognised.");

							return false;

					}

				}

			}



*/

			//Check size






Then open the calc.php



find this section 


case "Express":

	$package = array(






with this area there are "cases" for each of the shipping methods, find the case that you are wanting to get rid of the container restriction on... for example teh "Express" case is the first on listed, under each of the cases you will see a line that is similar to this:




'container' => $module['expressContainer'],




change them the following:


/*

Taken out the remove the restriction on package size

'container' => $module['expressContainer'],

*/

comment out this line and your problem whould go away, hence now the shipping will only see that the pacakge is 5lbs and will not give you a "flat Rate" quote.

Link to comment
Share on other sites

Guest satori

Well, I'm at a total loss as to how this is a fix... I tried the suggested mods...

Now EVERYTHING is $29.30 or more for shipping, there's no product I've tried that comes up with less than $29.30, although putting in large quantities of any product does increase the shipping to more than $29.30, way more than it should be for a 1lb item.

How can I get this to tabulate USPS shipping rates correctly?

Okay, nevermind... I had "large box" set in the module.

Adjusted to small box, and it's all working fine now. :innocent:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...