PDA

View Full Version : UPS Shipping Charges Never Change


robert222776
04-29-2009, 05:23 PM
I have implemented UPS real time shipping for my cart. All the products have a unique weight in the database, and I have the correct weight binding for each add to cart button. The shipping charge is not changing as a function of product or quantity. Also, the tax and shipping charges are appearing on the shopping cart page, and I thought I read in this forum that shipping charges and tax should not appear until the confirm page.

What should I be looking for that might be causing the constant shipping quote, and can I just delete the lines of code on the shopping cart page dealing with tax and shipping?

Thanks,
Robert

Ray Borduin
04-30-2009, 08:35 AM
Just delete the lines of code referring to shipping and tax. They won't calculate or show until after the checkout confirm page is visited, but if you continue to shop they will appear on the cart page, so just delete them where you don't want them.

Probably the shipping is set to base on the weight field instead of the totalweight field in the shopping cart. It could also be using the value of a single row instead of the ColumnTotal for that column. You would have to look at where the weight was specified to see which of those two it is.

Artemusreturns
04-30-2009, 08:54 AM
I'm having the same problem and this doesn't quite work for me. I've added a base rate to UPS shipping to include handling. Deleting the lines of code from the cart, and leaving in a GT to accommodate charges and discounts still adds the base rate handling charges to the GT. The GT has a mysterious looking +$2 added to the GT without explaination. Is there another way to add handling so that it doesn't show up in the cart, but does in the shipping quote? Can handling be separated from shipping? Do I have to eliminate handling?
Thank you.

Ray Borduin
04-30-2009, 09:06 AM
You can remove the row it is on and use math ( a '+' ) to add two values together and show them as one.

robert222776
04-30-2009, 10:34 AM
I do not have a base rate for shipping, and I don't think you suggestions correct my problem unless I am not understanding something.

This is the script that is generating the shipping charge in the shopping cart:
<?php echo WA_eCart_DisplayMoney($HorseAndPlowCart, $HorseAndPlowCart->GetShipping()); ?>
Not sure where this line gets its value.

On the confirm page the same line above also appears. Also the eCart Shipping behavior has this line:
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".$HorseAndPlowCart->DisplayInfo("TotalWeight") ."";

As I mention each button on the products page has the correct item weight associated with it.

If the problem lies within "GetShipping", where can I edit that part of the code?

Thanks!

Ray Borduin
04-30-2009, 10:42 AM
GetShipping gets the values from the shipping tab. The problem is we have two active issues on this same thread making it confusing which question I am answering.

My advice for you was to delete the row that was showing the value you don't want to display on your cart page.

Instead of ->DisplayInfo, which only gets the first row, try: ->TotalColumn which will get the value for all rows.

Artemusreturns
04-30-2009, 01:39 PM
My apology gentlemen. I was attempting to make the thread more robust. I'm new to these forums and won't butt in again. It wasn't my intention to confuse.
DH

robert222776
04-30-2009, 06:22 PM
To Dan....no problem...I often learn from multiple inputs....

To Ray....your suggestion to delete the shipping script from the cart page worked, as well as changing the line on the confirm page per your reply above.

The problem that I was seeing was upon returning to the cart after making it to the confirm page, the cart gave misleading and incorrect shipping numbers, but if I proceeded to the confirm page again, the shipping quote based on cart contents corrected itself and seemed right.

Thanks!

judy354182
01-18-2010, 02:32 AM
Probably the shipping is set to base on the weight field instead of the totalweight field in the shopping cart. It could also be using the value of a single row instead of the ColumnTotal for that column. You would have to look at where the weight was specified to see which of those two it is.

Hi Ray,
I was trying to follow your answer here because this is an ongoing problem I'm still having with eCart5/UPS total weight...for example 46 lbs. total weight for 7 items with UPS shipping set up, as is, the charge for shipping is $6.34 total.

My questions are:
1. Where do I look to find if the "base" on the weight field instead of total weight?
2. Where would I find the single row - "columnTotal" specifications?

Thanks in advance for your help as always!

Ray Borduin
01-19-2010, 07:45 AM
I'd have to look at how you have it set up currently. You could post your UPS code on your confirm page to a new thread and I or somebody else will be able to give you advice from there.