Jump to content


shipment calculation problem with orginating and destination zipcodes

  • Please log in to reply
4 replies to this topic

#1 josejp

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 10 October 2006 - 01:36 PM

Hi to all with us,

pls chk this link of UPS

The issue is i am working on a shopping cart and each product in the table have an orginating zip code wich indicated the area  its shipped from.and also we will get the destination zipcode from the order made by the customer.

I have to make an appliction very similar to the link i  have given above.
to calculate the shipping cost based on the orginating and destination zipcodes.

is there any class available that i can use for this purpose.

expecting your reply and Thanks in Advance

Jose P johnson

#2 ToonMariner

  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 10 October 2006 - 02:23 PM

I suspect there is some functionality that calculates distance between these points.  Being in the UK I am not familiar with zipcodes but if there is some pattern to them you could use it to generate these distances.
follow me on twitter @PHPsycho

#3 printf

  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 10 October 2006 - 02:53 PM

Why not just use their API, it free!


#4 josejp

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 October 2006 - 11:29 AM

you mean UPS provides API for that?pls gine me more ideas or URLs regarding this.

thankyou buddy

#5 HuggieBear

  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 13 October 2006 - 01:02 PM

Give this a try:


Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users