Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    30
    Thanks
    5
    Thanked 0 Times in 0 Posts

    php/mysql calculation weight & shipping cost

    Hi there
    Does anyone know where can i get php/mysql calculation weight & shipping cost tutorial ?

    Thank you in advanced!

  • #2
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    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.

  • #3
    New Coder
    Join Date
    Mar 2011
    Posts
    30
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Thank you so much

  • #4
    Senior Coder
    Join Date
    Jul 2011
    Posts
    1,226
    Thanks
    3
    Thanked 171 Times in 171 Posts
    How did you get on then?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •