uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
3.0 UPS Shipping

Knowledge Base Lobby : uShop Support Conference : Tax, Shipping, and Handling Questions
Jul-23-18 01:40 PM EST
Original Message
3.0 UPS Shipping
Author ronharter on 08-07-2000 at 09:33 (EST)
We only ship via UPS and UPS provides a cgi script that you can use to get shipping charges for their various methods. I have a copy of the script on our web page at where the customer can enter their zip code, the weight of the package, and the method of shipping and get back the shipping cost.

It would really be nice if this could be incorporated in the shopping cart so the shopping cart could use this script to calculate the shipping charges.

UPS seems to be very interested in helping make e-commerce work smoothly.

Have you looked into this and it is possible to do it?


Table Of Contents
  RE: 3.0 UPS Shipping Bill Weiner, 2000-08-07 15:59:04 (1)
            3.0 ups shipping ronharter, 2000-08-07 18:54:26 (2)
                 RE: 3.0 ups shipping Bill Weiner, 2000-08-08 06:29:54 (3)
                      3.0 ups shipping ronharter, 2000-08-08 11:03:53 (4)
                           RE: 3.0 ups shipping Bill Weiner, 2000-08-10 17:49:40 (5)
                                3.0 ups shipping ronharter, 2000-08-11 10:05:19 (6)
  RE: 3.0 - UPS Shipping James, 2000-10-25 12:14:17 (7)
            RE: 3.0 - UPS Shipping Bill Weiner, 2000-10-25 16:04:20 (8)
                 UPS Shipping Calculations ronharter, 2000-10-27 10:26:22 (9)
                      RE: UPS Shipping Calculations Bill Weiner, 2000-10-28 05:12:57 (10)

Messages In This Discussion
         1. RE: 3.0 UPS Shipping
        Author Bill Weiner on 08-07-2000 at 15:59 (EST)
We had looked into an interface to UPS a while ago...and at that time, the interface was not that simple, plus I believe they had their own platform specific script that needed to be installed on your server and we didn't want to get into that. But it has been some time, so we'll take another look at it since that is a feature others will like.

In the mean time, we have left the "Custom Shipping" option open to make it possible to develop your own custom shipping calculation/interface. See section 6.2 in the Programmer's Guide:
                 2. 3.0 ups shipping
                Author ronharter on 08-07-2000 at 18:54 (EST)
Thanks again Bill.

The new script is on their server so it seems to be better, it also makes it easier if they change the rates. I am not much of a programmer but I will look into the guide. Maybe some of your other customers will find a way to do it also.

All of the information is on the UPS website You have to sign up to get into the My UPS pages but it is free. It seems to be well documented but most of it is greek to me.

                         3. RE: 3.0 ups shipping
                        Author Bill Weiner on 08-08-2000 at 06:29 (EST)
FYI: It does look some improvements have been made to the interface so I went ahead and signed up for the documention. We'll then take a look at it and seriously consider it for a future release.
                                 4. 3.0 ups shipping
                                Author ronharter on 08-08-2000 at 11:03 (EST)
Thats sounds good to me. I am sure that many other customers would like this feature also.

With all the ecommerce going on now many companies are doing all they can to get in on it.

My account checks the USPS database to make sure I enter the address the way the post office wants it, finds the zip code if you don't know it, and figures the postage based on the weight from a $50.00 scale connected to the serial port. We don't use this at Excess Solutions but may in the future. You might want to look into that also, not that you don't have other things to do.
Ron Harter
                                         5. RE: 3.0 ups shipping
                                        Author Bill Weiner on 08-10-2000 at 17:49 (EST)
Well, it doesn't look like we will be able to develop an interface to UPS at this time afterall, as per their response to us:

"Unfortunately, due to the overwhelming number of requests we have received, UPS has determined not to authorize you to develop interfaces to UPS OnLine Tools as a third-party developer at this time."

Oh well.
                                                 6. 3.0 ups shipping
                                                Author ronharter on 08-11-2000 at 10:05 (EST)
Thanks for trying anyway. I am sure they will make this available before to long. It is in their best interest to do it.

         7. RE: 3.0 - UPS Shipping
        Author James on 10-25-2000 at 12:14 (EST)
I have a licensed cart script that has a complete UPS subroutine. Works quite nicely. It logs into ups in realtime calculating shipping from current rates anywhere in the world, all available shipping methods. Would that help?

I also need this feature with this cart. This would pretty much finish off my wish list.

                 8. RE: 3.0 - UPS Shipping
                Author Bill Weiner on 10-25-2000 at 16:04 (EST)
Hmmm.... because UPS said that they decided "not to authorize (us) to develop an interface at this time"... I'm not sure if that means we can't help others customize the script for themselves. I'll have to check.

In the meantime, as a hint, you may want to look into customizing the "custom_shipping" subroutine that is located in the "" file. See section 6.2 in the Programmer's Guide for some additional information about customizing that subroutine:
                         9. UPS Shipping Calculations
                        Author ronharter on 10-27-2000 at 10:26 (EST)

I finally figured out a weight formula for UPS that I can live with by using average charges for different zones. However the way the formula calculates is not correct for UPS. If the package weighs even one ounce over a pound they charge you for the next full pound.
For example I have it set to charge $4.59 + $0.40 for each additional pound. When I placed an order which weighed 2.7 pounds it calculated the shipping charge as $5.67. ($4.59 + (2.7 * .40))It should have calculated this as 3 pounds and charged $5.79. I think most shipping companies use this method or charging for the next full pound except maybe the USPS on packages under a pound. Is there anyway to make this round up to the next full pound?

Ron Harter
                                 10. RE: UPS Shipping Calculations
                                Author Bill Weiner on 10-28-2000 at 05:12 (EST)
I suppose you could try using the "custom" shipping option... and then modify the "custom_shipping" subroutine in the "" file such that the following calculations are performed:

# This code will round the weight up to the next integer.
$totals_total_weight = &strip_letters($totals_total_weight);
if ($totals_total_weight != int($totals_total_weight))
$totals_total_weight += 1.0;
$totals_total_weight = int($totals_total_weight);

# And this code will separate the $shipping_table parameter that gets
# passed to that custom_shipping subroutine.
($x1,$y1) = split (/,/, $shipping_table);
$x1 = &strip_letters($x1);
$y1 = &strip_letters($y1);

# Now calculate the shipping total with the formula.
$ret_value = ($x1 * $totals_total_weight) + $y1;

# And finally, add the shipping modifiers (if any).
$totals_shipping_modifier = &strip_letters($totals_shipping_modifier);
$ret_value += $totals_shipping_modifier;

© 2003 Microburst Technologies, Inc.