View Full Version : php/mysql calculation weight & shipping cost
09-06-2011, 09: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, 04: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, 06:24 AM
:) Thank you so much :thumbsup:
09-12-2011, 06:34 AM
How did you get on then? :)
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.