# Shipping Costs by weight

In the Netherlands we have a postal system that defines the shipping costs per weight range. As in most countries I presume.

But in this particular case I have to add extra costs for products above a certain size.

What happens now in Marketpress is that in the checkout it adds up all the costs of the individual products plus the extra costs. So I end up with a ridiculous high amount of shipping costs.

I want it to rate it for the total weight and only add the extra costs for the large products.

How can I get Marketpress to do so?

Regards,

• Tom Eagles

@Biz2Web

Are you using the weight rate and adding the layers as necessary? This should return a total price for the weight. If I undersatnd you its calculating the rate for each item then adding those together rather than the total weight and then applying the weight rate?

Cheers

Tom

• Biz2Web

Hi Tom,

If I use only the weight rate it works fine.

But in this particular case I need to add extra costs to some products because of the size.

If I specify that in "extra shipping costs" in the checkout I se all the cost added up.

So it adds all the individual costs per product per weight plus the extra costs.
Instead of the total of weight as defined in the layers plus the extra shipping costs.

For example:

If layer 1 from 0.01kg costs 3, layer 2 from 0.5kg costs 7 and layer 3 from 2kg costs 12.

If I don't add extra shipping costs for some products and I have a total weight for the order of 3kg it charges 12. Good.

As soon as I add a product with extra shipping costs and I have 3 products of 1.5kg and two with extra shipping costs of 4 it will charge:

Most ideal would be if it only charges 7+4=11, but I can see that this will be impossible.

I hope this makes my question more clear.

Regards,

• Tom Eagles

@Biz2Web

Hi Saskia, sorry for the delay in getting back to you i wanted to double check this on my own server and can confirm what you are seeing, I am tagging the lead developer @Aaron for feedback on this as there is obviously something going awry here as the calculation is indeed good until the extra charge is added, Hopefully he can provide a fast solution to this,

Kindest regards

Tom

• Biz2Web

Hi Tom,

Good to hear you double checked my story.

Yes indeed I hope for a fast solution too.

• Aaron

It seems to be behaving as expected. Extra per item shipping is exactly that, it is added after the normal shipping calculation. And that seems most practical to me.

You have 3 items in the cart, for a total of 3 kg and shipping tier of \$10 for 3 kg. But 1 of those items are really big so might need to be packaged separate or the package gets a premium for oversized. So you assign say \$4 extra cost to it. Making the total \$14.

If you want any different behavior than that you can code your own shipping module based off a copy of the weight based one.

• Biz2Web

It is not behaving as it should.
Because as soon as you allow extra shipping costs it adds up all individual costs of the products were it should use the weight-rate layers.

So if I have 2 * 1.5kg packages that cost 7 each to send but would if shipped together cost me 12 to send and there is an extra cost of 3 it ends up charging:
2*7 + 3= 17 instead of 12+3=15.

So to me this topic is not solved and it seems to me like a bug in the shipping part of the plugin.

This products still must be send in one parcel. I don't like the idea of tweaking the way of shipping, resulting in a lot of extra costs, because the plugin cannot handle it properly.

• Aaron

If you want different behavior then you will need to code your own shipping module, maybe using weight based as a guide. Best of luck!

• Biz2Web

I understand that you can not help me but this really is a bud in Marketpress. It is therefor not resolved.