Afficher un message
Vieux 13/09/2007, 23h34   #1
DonO
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Calculating UPS Shipping Charge

Does anyone have any experience calculating UPS shipping costs
dyanmically using PHP?

I found a series of PDFs on UPS's site that details costs. I can put
together some kind of matrix or DB table to store this and run my
script against it, but I figure their has to be something out there
already made.

My script would need the following ideally...

1) Set the weight of a box of wigits (say 2lbs ea. box)

2) When the user selects the quantity of boxes and puts in their
shipping address and UPS shipping method, the following happens...


$shipping_costs =
// magically does something with this....
# of boxes * 2 = weight AND
Shipping distance = distance between shipping zip and hard coded store
zip AND
Ship method is specified by drop down.

Which gets returned to my script somehow.

Any in the right direction would be appreciated.

Thanks,
D.

  Réponse avec citation
 
Page generated in 0,05800 seconds with 9 queries