Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

USPS - Weight, Pounds, Ounces - Shipping Questions, Weights and Handling Fee’s
 
tagtech
Jr. Member
 
Total Posts:  14
Joined:  2008-05-01
 

I must have posted this topic in the wrong place so I have decided to post it here.
I need help with my USPS shipping module.

Thank you

TagTech . . .

Howdy all:

-============================-
SHIPPING WEIGHT CALCULATIONS AND USPS

Ok in my store I ship widgets.  My widgets fit into a standard #10 envelope.

If a customer orders one widget it weighs 1 ounce or less depending upon thickness of envelope used and will ship for current first class postage at the post office.

If a customer orders two or more widgets then I am over the 1 ounce limit set by the post office and my envelopes become non-machinable.  In person I can usually ship an envelope with two widgets in it and non-machinable for about $0.86 first class mail.  I still find that shipping first class non-machinable is still cheaper than shipping parcel post or priority mail.

I have looked in the forum and found others that have asked what is the default unit of measure for weight used in the shipping modules?  To date I have not found anywhere that anyone specifically indicates what unit of measure is used for shipping.

I make an assumption that it must be pounds . . . this is only an assumption.  Now working from the assumption that the default weight is in pounds, I set up product widget #1 as having a weight of .0625 or 1/16 of a pound.

If I use .0625 as my weight the USPS shipping module does NOT offer First Class as an option for shipping.
If I use .0624 as my weight the USPS shipping module displays that it is not a valid option for shipping to use the USPS shipping module at all.  In fact if I use .0624 as a product weight the shipping module changes the weight to 0.000 when I update the product.

I would like to be able to put in a weight that will allow for shipping of less than an ounce and add the fee for non-machinable envelopes.  If i cannot add the non-machinable fee, I can add that fee by building that into the handling charge.

Recap:

I have only three options selected for USPS shipping: 1) First Class, 2) Priority Mail, 3) Parcel Post
I have a product that weighs less than 1 ounce or .0624 of a pound
I cannot get the shipping module to offer First Class as an option for shipping.
If I use .0624 as my product weight the USPS shipping module becomes unavaliable
If I use .0625 as my product weight the USPS shipping module offers only Priority Mail and Parcel Post as a valid shipping option and does not offer first class.

-===========================-
HANDLING FEE CALCULATIONS

I would like to add $0.75 handling fee per every $6.00 on the product order total. 
I Changed the “Calculate Handling Fee” to Percent
Handling Applied = Per Order
Handling fee = .125

If my theory is correct then .125% x $6.00 should = $.075

I might have the handling fee calcuations correct but I have no idea since I cannot get the shipping weight correct so that it chooses first class mail to allow me to verify the fees.

-=============================

#1) I would like to find out exactly how Magento handles weight and what units of measure are used.

#2) how to set up a product that weighs 1 ounce and products that weigh less than 1 ounce.

#3) I would like to find out how to add “First Class” as a mailing option so that it displays the price for “First Class” until the weight reaches say 4 lbs. - the USPS will quote prices for “First Class” up to 4 lbs.

#4) The USPS also offers first class in envelope, flats and parcels, the classification is different for each and the pricing is different for each.  I see no differentiation between the two in any of the first class shipping dialogue that I have found associated with magento.  Can anyone tell me if I were to get the first class shipping module to work, would it give me all the offered options or will is just give me the option of “first class”?  If it only gives me the option of “first class”, is this first class envelope, flat, parcel or what exactally?

It appears that this thread (http://www.magentocommerce.com/boards/viewthread/3953/) might address the envelope, flat and parcel issue, can anyone confirm that this has worked?

For anyone wanting to make this fix, it is the table called “core_config_data” in the row with a “path” of “carriers/usps/allowed_methods”.  Add one or more of the below options in place of just “First-Class”

First-Class Mail Letter
First-Class Mail Flat
First-Class Mail Parcel

NOTE:  I know that in my current shopping cart - I had to alter the weight formulas in the code to properly calculate shipping for weight less than one ounce.  I expect that I might have to do the same here.  It would help if someone could point me in the right direction.

Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
sdb
Sr. Member
 
Avatar
Total Posts:  223
Joined:  2007-11-13
coastal California, USA
 

"I have looked in the forum and found others that have asked what is the default unit of measure for weight used in the shipping modules?  To date I have not found anywhere that anyone specifically indicates what unit of measure is used for shipping.”

Then maybe you haven’t used the right search terms. I’ve seen the question asked on the forums several times, and seen it answered several times.

- Yes, the weight and units (for a US location) are pounds
- Are you putting the zero in front of the numbers? As in 0.5 for example, not just .5? You didn’t type that in your examples just now. Using that extra zero works just fine with my shop running the most recent version of Magento.
- I don’t know enough to answer your other questions, as I have only played with limited Magento shipping options, but I can tell you this: Most shops use estimates, rounding, and don’t mind charging customers an extra cent or two over the shipping price. Time is money. You’re trying too hard, make it easier. Don’t charge some people for envelopes, just make the handling charge more for everyone, or specify a minimum order price.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tagtech
Jr. Member
 
Total Posts:  14
Joined:  2008-05-01
 

Unit of measure used for shipping . . .

Then (no offense) maybe you haven’t used the right search terms. I’ve seen the question asked on the forums several times, and seen it answered several times.

No offense taken - I make mistakes like everyone else.

Indeed sir you are correct, I finally found the default weight when I started to edit the PHP pages within Magento.

Note: I will say that the search feature and functions on this forum leave a lot to be desired but also like you I did some more digging and I found several posts that made reference to pounds but I never found a definitive answer from anyone at Magento.

None-the-less we move on . . .

- Yes, the weight and units (for a US location) are pounds

Thank you for clearing this up.  I am operating under the premise that POUNDS is the official weight or measure for USA shipping options.

- Are you putting the zero in front of the numbers? As in 0.5 for example, not just .5? You didn’t type that in your examples just now. Using that extra zero works just fine with my shop running the most recent version of Magento.

No I have not put a 0 in front of the shipping weight I shall do this and see what the results are.

Indeed you are correct I have only been testing with .0625 and .0624, not 0.0625

I don’t understand if the weight is in actual pounds or that one ounce = 1/16 or .0625
I mean does 1 = 1 pound?
What does 0.1 = is that a 10th of a pound?
What does 0.0625 = is this 1/16th of a pound or 1 ounce?

What I do know . . .

I know if you use 0.0625 the shipping module will work but it will not display the correct shipping options and will not display the correct postage.

I know if you use 0.0624 the shipping module will not work, if offers no USPS options for shipping.

This is the error I receive:

This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.

I know that the use of 0.05 does not work.

I do know regardless of the weight, the USPS shipping module does NOT display the proper First-Class information.  I know that the First-Class problem is addressed in other threads.

- I don’t know enough to answer your other questions, as I have only played with limited Magento shipping options, but I can tell you this: Most shops use estimates, rounding, and don’t mind charging customers an extra cent or two over the shipping price. Time is money. You’re trying too hard, make it easier. Don’t charge some people for envelopes, just make the handling charge more for everyone, or specify a minimum order price.

I fully understand and respect the rounding off of the shipping methods, my point here is the math is wrong.

Not only does the shipping weight calculate the wrong weight, there is another issue of the shipping options not displaying correctly.  I most certainly will add a “handling fee” to my shipping charges but I want the module to offer the correct choices and have the proper weights.

Please note this whole Magento project takes a back seat to other issues I am working on so I work on it when I can.

I have read the post about the USPS mail fix and in the short term it did fix my problem.  But when I changed settings in the shipping module from within the admin my changes were overridden and the problems reappeared.

Editing the database and adding the options as suggested fixes the problem short term but does not fix the hard code.

Working on a solution . . .

I have been editing the PHP files associated with the shipping module and I have very promising results I hope to release a detailed fix after some more testing.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sdb
Sr. Member
 
Avatar
Total Posts:  223
Joined:  2007-11-13
coastal California, USA
 

Nice, its good you might be able to work out a solution to benefit everyone. I know I would certainly be lost, I can’t code much of anything past css / html.

Yes, the number 1 = 1 pound, and 0.1 would equal one tenth of a pound.

PS: I totally agree that the searching on these forums leaves something to be desired. Why they didn’t just use phpbb I will never know.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tagtech
Jr. Member
 
Total Posts:  14
Joined:  2008-05-01
 

Howdy all:

After waiting to see if anyone was going to fix this USPS First Class mail issue, I have decided to post my fix here.

I edited two files to change the term “First-Class Mail” to the following:
- First-Class Mail Letter
- First-Class Mail Flat
- First-Class Mail Parcel

The files I edited are:

#1
File: config.xml
Location: /magento/app/code/core/Mage/Usa/etc/config.xml

#2
File: Usps.php
Location: /magento/app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php

After testing - these edited files appear to correctly display all the USPS First Class mail options.

These files fix the First Class Options but NOT the less than one ounce weight issue still plauging this USPS shipping module

Backup your existing files and give them some name such as config.old and Usps.old or .ori for original

Copy these two files to their respective locations.

Restart mysqld
Restart httpd

Go to your admin and select USPS in the shipping module and the options for First-Class Mail Letter, First-Class Mail Flat and First-Class Mail Parcel, will now be avaliable to you.

-======================================================-

Weight Issue

The current cost of a first class letter as of (07/03/2008) is $0.43 USD for a letter weighing one ounce or less.

Magento uses pounds as its unit of measure for weight.

If you enter 1/16 of a pound as .0625 for an item weight the shipping defaults to First-Class Flat and First-Class Parcel, it still does not allow for the selection of First-Class Letter.  It lists the lowest shipping cost as First-Class Flat @ a rate of $0.83.

This is incorrect, one ounce and below should offer the purchaser the option of a First Class Letter @ $0.43 but for some reason the code will not provide this option to the purchaser.

If you enter less than 1 ounce or .0624 the shipping module will not offer USPS shipping at all and error’s out.

For the moment I will be listing my less than one ounce items as one ounce and just let the customer pay the First Class Flat rate of $0.83

I know that this is a VERY minor issue, but none-the-less, it is frustrating when you are used to shipping for $0.43

I like things to be right.

I do not have time to dive into the weight calculations and such at this time so I hope someone else will look at this issue.

But for now I have posted my edited USPS files to fix the First-Class Mail issue.

Thank you

Kobie

File Attachments
config.xml  (File Size: 10KB - Downloads: 524)
Usps.php  (File Size: 23KB - Downloads: 381)
 
Magento Community Magento Community
Magento Community
Magento Community
 
WhoIsGregg
Member
 
Total Posts:  64
Joined:  2008-09-02
Tampa, Florida
 
tagtech - 03 July 2008 02:40 PM

If you enter less than 1 ounce or .0624 the shipping module will not offer USPS shipping at all and error’s out.

I am also experiencing this error (also noted in this other thread)…

Unfortunately, I can’t simply increase the weight of the individual product because I have customers who buy just one of this item and customers who buy 100+ of this item… If I increase the weight of a single item it causes the shipping costs for 100 of them to be unreasonably high.

Any thoughts on how to fix this problem? Perhaps there’s a way to tell Magento to simply bump the weight up to the minimum required by USPS if it falls below that minimum?

 
Magento Community Magento Community
Magento Community
Magento Community
 
naughtyT
Jr. Member
 
Total Posts:  4
Joined:  2009-06-26
 

Sorry to bring up a very old thread, but does anyone know why the only “weight” that will result in a shipping amount showing is .1? If I try any other weight for a product it just puts up the error message… The first products I put in my shop were stickers and I put them to .1 in the weight field… now I’m trying to add T-shirts at 1.25 and they fail to show shipping unless I put them at .1 ... I’m only offering USPS first-class for shipping…

Thanks.

[edit] Looks like when I add First Class Mail Parcel, an option shows up - hope that helps anybody who comes across the same problem.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top