Shipping calculations incorrect

Posts: 9
Joined: 05/10/2008

I have upgraded to version 5.x.1.3 and have noticed issues with the shipping modules.

If I have a product that weighs 4 ounces, if I add one of them to my cart it ships at 4.80, if I change the quantity to 10, the ship cost is 48.00, even though I have ship all as one item enabled, it breaks down each product into its own box and sends the info across to webtools then totals them up.

Is there a fix for this?

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

There's a semantic problem with the "Package quantity" field on the product edit page. In short, the intended meaning is "how many of this item can you fit in one shipping box". If you have it set to "1", then you are saying only one of those items can fit in a shipping box, so when a customer orders 10, Ubercart will ship 10 boxes.

http://www.ubercart.org/forum/support/6049/ups_shipping_quotes_not_right

To fix, change "Package quantity" to something more appropriate.

--

<tr>.

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

Set the package quantity for that product to something much bigger than 1. However many of those you will put into one box, use that number.

Posts: 9
Joined: 05/10/2008

This only seems to work when there is only one product type in the cart.

I am selling fabrics, when I set the threshold to 10 per box, it works when this is the only product in the cart, when I have more then one product in the cart it disregaurds these settings and treats them as all in one box. I tried setting up product classes called Fabric, but it still treated these as individual products and bundled everything as one.

Is there someway special to setup item counts across your boxes when calculating shipping.

I guess what I am asking if there a decent way to figure how many packages your going to have with the items in your cart before getting shipping quotes? Maybe like 10 items per box, (someone might order 5 flannel, 5 cloth, and 5 silk) I would want to use two boxes, or is shipping to complicated to have the app figure it out.

Any help would be appreciated. Thanks.

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

The short answer is "not that I've found". The way it is now, if there is more than one kind of product in an order, they are quoted as either in boxes with their own types, using the package quantity, or all in one big virtual box, no matter how many there are. Even with the dimensions of the products, I don't know how big your boxes are, and that's still no guarantee that Ubercart will pack them the same way you will.

In fact, this is one of those problems that has no known "best" solution. See http://en.wikipedia.org/wiki/Bin_packing_problem for glimpses of all the gory details.

Posts: 146
Joined: 11/10/2007
Bug Finder

There's a bug when using both UPS and USPS quotes... We sell products from guitas, drumsets to books and accessories etc.. If we add a drumset with a book and calculate shipping it's shows a UPS Ground rate of around $30 and a USPS rate of $4.80. This only happens when you select each product in it's own package. UPS is calculating the drumset and usps is calulating the book... very strange.

Anyone?

--

Give and you will receive, you will be given much. Pressed Down, Shaken together, Running Over, it will spill into your lap.

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

$4.80 is the base rate for Priority Mail when the weight is <= 1 lb. Maybe some product weights aren't set properly? UPS might be giving you a dimensional rate based on the size of the drumset, even if the weight isn't entered.

--

<tr>.

Posts: 146
Joined: 11/10/2007
Bug Finder

Thanks..But shouldn't USPS calculate both not just the book? Both products have the weight set 35 LBs for the drumset and 1 LB for the book. It's set for all products in the same box.. keep in mind were trying every possible combo to find possible bugs so our customers don't once we go live with our new site.

--

Give and you will receive, you will be given much. Pressed Down, Shaken together, Running Over, it will spill into your lap.

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

(I was thinking that if the drum was 0lb and BIG, and the book was 1lb, USPS would quote only the 1lb rate but UPS would quote a rate based on the size of the box, which would be big because of the drum. Maybe re-enter the weight for the drum just to make sure it gets saved properly?)

Have you modified your workflow-ng conditions to test product class or anything like that? Reset the USPS condition at admin/build/workflow-ng if it's listed as modified. You could also turn on the debug at admin/store/settings/quotes/edit and see what weight is being sent to USPS.

--

<tr>.

Posts: 146
Joined: 11/10/2007
Bug Finder

I really think it's a bug.. I hate being a pest and posting them, but for the last year we have been testing Ubercart and the shipping part is causing us to pull out hair out. Our store is very complex since we sell so many different types of products and sell domestic and international. Note: this possible bug only happens when you have each product in it's own box.

--

Give and you will receive, you will be given much. Pressed Down, Shaken together, Running Over, it will spill into your lap.

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Could very well be a bug, but the breaking into packages happens independently in each shipping module, so it seems improbable that UPS calculates only the drum and USPS calculates only the book. Regardless, in order to conclude it's a bug you pretty much have to follow the same debugging steps, looks at what's being sent to UPS/USPS, and figure out what is misbehaving. The debugging output should show you how the modules are breaking the products into packages.

--

<tr>.

Posts: 146
Joined: 11/10/2007
Bug Finder

Thanks

--

Give and you will receive, you will be given much. Pressed Down, Shaken together, Running Over, it will spill into your lap.

Posts: 9
Joined: 05/10/2008

Has anyone given the thought to adding a check box to the product creation page? Something like boxed or shipped separately, that way any products meeting this requirement could calculate shipping for these items correctly.

Just a thought, doesn't help my problem but someone selling a drum set and a book I know it would help a great deal.

Posts: 168
Joined: 10/08/2007
Bug FinderGetting busy with the Ubercode.PayPal Hero

Hey Lyle. Not to beat a dead horse, but from your post ...


or all in one big virtual box, no matter how many there are

How would you achieve the "no matter how many there are?" My understanding is that, with two different products in an order, regardless of package quantity settings, the code will quote each product in a separate box and add the two quotes together. The combined quote gets presented as one $ amount, a virtual box. The package quantity only affects how many "like" products can fit into a single box.

So, I'm just trying to clarify that unlike products get quoted separately (regardless of quantity in a box) and then added together. Thanks for the clarification.

--

Christopher Schaub
LuteGrass, LLC
http://www.lutegrass.com

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

The UPS and USPS modules have a setting to quote rates based on whether the entire order is lumped into one package, so that the total weight is the only consideration, or products are divided up by type and the package quantity.

When the all-in-one setting is enabled, the rate request that is sent to the UPS or USPS servers only describe a shipment of one package that weighs an amount equal to the total order. If the setting is disabled, all of the packages are organized and described to the servers, which send back a rate for the whole shipment (like UPS), or a rate for each package (like USPS). The USPS rates are added together according the service (Priority, First-Class, etc.) so that the customer only sees one rate for the entire order for each service.