close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UPS Shipping Charges not working properly

Thread began 4/07/2010 7:54 pm by InnovaDave | Last modified 4/12/2010 3:13 pm by Eric Mittman | 1532 views | 5 replies |

InnovaDave

UPS Shipping Charges not working properly

Ok, I've got a strange one for you. I finally got the UPS shipping to pull accurate fees for the item I was adding on a website I'm working on. The problem is as soon as you change the quantity to 2 of the item the shipping charge goes from $9.90 to $28.82. When I get a quote directly from the UPS.com site I get $9.90 for the first item and then when I enter the weight for item 2 I get $13. Something's out of whack. Please let me know how to fix this or what I may be doing wrong. If you need me to submit more information please let me know what to send.

(I'm using E-Cart 5)

Thanks,
Dave

Sign in to reply to this post

InnovaDave

Also, I fixed the "S" in the following to "LBS" as described in another post. Didn't know if that had anything to do with it. Is there a way to fix that permanatly so I don't have to edit it each time I use the checkout wizard.

$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($eCart1->WeightUnits)."LBS" ."";

Thanks,
Dave

Sign in to reply to this post

Eric Mittman

How do you have the number of packages setup? If you have it set to one package for the entire order rather than have two packages of similar size and weight you will have one larger package. This could be what you are seeing with the increased price.

As for adding in the LBS you should not need to do this if your cart is set to LB for the weight. The default code that is created by eCart 5 for the weight unit looks like this:

php:
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($eCart1->WeightUnits)."S"  ."";



You are taking the default weight unit and just adding an s to it, so if you had oz or lb as the weight unit you would end up just having an s added to the end. So the code should already work for this.

Sign in to reply to this post

InnovaDave

I actually tried it both ways... 1 package for whole order and ans separate packages.

Eventually I tried changing from oz to lbs in the ecart object file and it seems to be a lot closer to the right pricing.

As far as changing the "S" to "LBS", I had found that solution in another post on this forum while researching the issue. Should I change it back to "S"?

Sign in to reply to this post

InnovaDave

I just replaced the "LBS" with the original "S" as you mentioned and got this error...

"S is not a valid unit of measurement for weight for this shipment"

So I changes it back to LBS.

Sign in to reply to this post

Eric Mittman

In my testing leaving the value as "S" would allow it to work without error. The eCart object sets the weight unit as "oz", "lb", or "kg" all without the "s". The code that is in the shipping quote server behavior should account for this with the following code:

php:
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($eCart1->WeightUnits)."S"  ."";



This code uses the eCart WeightUnits setting and adds the "S" to the end of it. If adding in the other values to this code gets it to work for you then it seems like a valid way of doing it, I'm just not sure how that is working for you, unless your code differs from the code above, or your carts WeightUnits setting is not "oz" or "lb".

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...