8 replies [Last post]
Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
Was this information Helpful?

Hi all,

I have a few problems at the same time. I'm trying to set up some conditions for shipping quotes based on country and weight. Maybe its the wrong approach, but I am making several flat rate shipping methods. For every method I add conditions: country and 'check an order's total weight'. The order's total weight, that is all the products in the cart together, right? That is what I'm looking for. Unfortunatly for a method with a weight between 2 and 10 kg, an order of 8 items of half a kg will not be recognised. Instead it calculates 8 times a quote for the 0-2kg method.

Plus, in my checkout something is wrong with showing the result. The product prices aren't added to the total. In the order review everything is shown fine.

I hope someone can help me on this, as I'm being pretty confused about what I should do with this..

All suggestions are very welcome.
Cheers,
Danny

--EDIT: It gets weirder: with only one product in the cart, it calculates double the shipping quote than it should get.

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
Re: Confused about shipping quotes based on weight + bad display

Even when I have one product that is 3kg, the only option it will calculate is the 0-2kg method. Double.

Please help. I know this looks like a hopeless case, but I need to get this working. I didn't do anything wrong and its all messed up... Sad

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
Re: Re: Confused about shipping quotes based on weight + bad dis

I made a fresh Drupal install with the same modules and it is the same: my shipping quote is calculated double. When I put 2 items in my cart, it calculates triple, while it actually should stay single as the total weight is not surpassed the 2kg that i've put into my Shipping Quote Method.

The good thing is that it shows the correct display of the total in the checkout. (price + shipping cost = total)

This is so confusing. I don't know where this double amount comes from or what the logic behind this is.

In the attachment a screenshot of the Method I filled out. Is there anything wrong with this? I just want this specific method to be triggered when A: the shipping address is in Belgium. B: the total of products in the cart/checkout is lower than 2kg.

In my original installation i have alot more, but this is just an example.

AttachmentSize
shipping-quote-method.png 130.01 KB
TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Re: Confused about shipping quotes based on weight + bad

It sounds like you've configured your flat rates wrong. Each flat rate has 1) a per-product rate, and 2) a per-order rate. The total shipping charge = (per-order rate) + (per-product rate) * (number of products).

<tr>.
Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
Re: Re: Re: Re: Confused about shipping quotes based on weight +

Hey TR, thanks so much for your help. I fixed it. It wasn't very clear to me what that default price was all about.

Leaves me with another problem. This being fixed, I still have other flat rates. And it does not recognise them. I have a rate for total shipping weight of 0-2kg and one for 2-10 kg. If I load up my cart over 2kg, It will still only recognise the 0-2 kg rate as the correct one. I don't know what's wrong with it and I cannot find any information about this in the documentation.

Thanks for your help.

The examples here are all with the 'country: Belgium' option, but that works perfect, so that shouldn't be the problem.

AttachmentSize
A: the example product page that shows that this product weights 0.500 kg 162.82 KB
B: The cart that shows 5 products are in it.(5 x 0.5 = 2.5) 61.93 KB
C: the checkout that shows the wrong flat rate output. 103.03 KB
D: 0-2kg flat rate conditions 115.69 KB
E: 2-10kg flat rate conditions 147.73 KB
autopoietic's picture
Offline
Joined: 07/28/2009
Juice: 52
multiple items

I am having what I believe is a very similar problem.

I have several flatrate methods which specify:

<=1kg
>1kg to <=2kg
>2kg to <=4kg

but on checkout the shipping calculator will only return a result at all if the items' total weight is less than 1kg.

Any ideas?

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
_
autopoietic's picture
Offline
Joined: 07/28/2009
Juice: 52
Fixed

thanks for reply Danny.

Turned out in my case that the fixed rate methods total order weight conditions 'products to include' selection was not set and selecting 'All Products' fixed it for me.

I was under the impression that leaving this select unchecked defaulted to 'All Products', but that was a bit lazy of me.

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
_

No problem. I had the same problem earlier. Sorry that I didn't think about that, I could have helped you out quicker...

http://www.ubercart.org/forum/support/12074/wrong_flatrate_being_calculated