View Full Version : php/mysql calculation weight & shipping cost

09-06-2011, 10:39 AM
Hi there ;)
Does anyone know where can i get php/mysql calculation weight & shipping cost tutorial ?

Thank you in advanced!

09-07-2011, 05:54 AM
I don't think there is such a tutorial, but it shouldn't be too hard. You'll have to compile the different costs for the courier services you want to use, and then it's just simple logic and mathematics after that.

To elaborate the logic a bit more, you'll have to add a weight for every item in the database your items are stored (I assume a mysql database). Then, you just have a value that is calculated by an addition of each item's quantity*weight and then a cost calculated based on the courier of their choice.

Several ways you could achieve the end result, but they'll mainly follow that logic.

09-12-2011, 07:24 AM
:) Thank you so much :thumbsup:

09-12-2011, 07:34 AM
How did you get on then? :)