Hi:
I've been working on an ecommerce site for a while now and we had the same issues.Merconnet
Basically what I did was to get the shipping charges chart from FexEx, yes they're weight based, then inserted that in a DB table. I also had the issue of countries, because the same package to different countries costs different.
SO I got the countries in another table.
I created a third table which links the countries and weights.
Your programmer should know this concept, it's called many-to-many relationship (in DB talk!)
😉 😃
So it takes my cart, 3 queries to extract the correct shipping price for any country , based on the package weight.
I don't claim for this to be the best way of achieving this, however that's the solution I came up with .
If you find a better solution please post it!
Hope this helps.
kamy