|
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
On 13 Sep, 23:34, DonO <don.or...@gmail.com> wrote:
> 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. Don't know, but if you did write something up, be aware of chargeable weight. This is the calculation of the box size that will determine the weight. i.e. they will charge based on which is higher. So, for example, you want to send a large box of feathers, they will bill you with chargeable weight and not the actual weight of the box. This is normally calculated as (H * W * L )/6000 There is a good explanation here .. .http://www.parcelforce.com/portal/ pw/content1?mediaId=load112007&catId=25900681 HTH |
|
![]() |
| Outils de la discussion | |
|
|