Re: UPS shipping returns incorrect quotes
You do not have this Product marked as Virtual or Always Free Shipping and there isn't a Download on it ... correct?
Do you have a link to this Products URL to see what it is doing?
What charges are you expecting on UPS for this Product?
What charges are you seeing?
What is your Ship From?
What is the Ship To?
Re: UPS shipping returns incorrect quotes
First, I really want to say thanks for helping me out. Troubleshooting through forums cant be easy!
Quote:
Originally Posted by
Ajeh
You do not have this Product marked as Virtual or Always Free Shipping and there isn't a Download on it ... correct?
Well, it is set as Always Free Shipping because I want ground shipping to be free. I'm just trying to give customers the option of paying for 2day or 3day shipping.
Quote:
Originally Posted by
Ajeh
Do you have a link to this Products URL to see what it is doing?
http://lasersandlights.com/blissligh....html?cPath=18
I also turned on weights display from the shipping configuration and it does indeed show the quote as 7.6lbs and a line item weight of 14.6lbs.
Quote:
Originally Posted by
Ajeh
What charges are you expecting on UPS for this Product?
The actual quote is correct from UPS. When you move to checkout, the actual charge for shipping shows different than the quote.
Quote:
Originally Posted by
Ajeh
What charges are you seeing?
Sorry, I'm not sure what you are getting at with this question. I'm seeing two different charges. Quoted charge from UPS api (correct) and actual charge (just below subtotal in the checkout) as different (incorrect).
Quote:
Originally Posted by
Ajeh
What is your Ship From?
areacode 95959. Our shop address
Quote:
Originally Posted by
Ajeh
What is the Ship To?
areacode 01238. A customers address. Though the discreptancy shows up no matter where I ship to.
Re: UPS shipping returns incorrect quotes
For checkout_shipping I see:
Quote:
FREE SHIPPING!
Free Shipping Only $0.00
United Parcel Service (7.60lbs) United Parcel Service
2nd Day Air $56.25
3 Day Select $41.63
Ground $18.26
What do you want to see for shipping?
NOTE: I think you need to add these to your stylesheet
.hiddenField {
display: none;
}
.visibleField {
display: inline;
}
Re: UPS shipping returns incorrect quotes
Yes, that area of the screen is correct. The problem is up in the actual cart.
Sub-Total: $198.99
United Parcel Service (14.20lbs) (2nd Day Air): $88.39
: $0.00
Total : $287.38
The problem is in the actual charges. due to this line of code:
$total_weight += $_SESSION['cart']->free_shipping_weight;
I changed it to this:
Code:
// bof: add back Always Free Shipping weight
$free_ship_weight = $_SESSION['cart']->free_shipping_weight;
if ($total_weight != $free_ship_weight){
$total_weight += $free_ship_weight;
}
// eof: add back Always Free Shipping weight
That seems to fix the problem when the cart only has free shipping items, but adds the free shipping weight into mixed carts... think I am getting closer.
Re: UPS shipping returns incorrect quotes
Are you talking about the $0.00 in the:
/index.php?main_page=checkout
or the page:
/index.php?main_page=shopping_cart
and the:
Total Items: 1 Weight: 0lbs Amount: $198.99
On the checkout page, that looks like that is Tax ...
On the shopping_cart page, you would need to do more customization to the code to try to match up the adjusted weight ...
Re: UPS shipping returns incorrect quotes
the page I am worried about is /index.php?main_page=checkout
I know the line " : $0.00" refers to the taxes so I am not too worried about displaying like that, just the weight discreptancies.
Re: UPS shipping returns incorrect quotes
If you mean because the shopping_cart shows:
Weight: 0lbs
and the checkout shows:
7.60lbs
the simplest solution is to go the Configuration ... Layout Setting ... and change the setting for:
Shopping Cart - Show Totals
Show Totals Above Shopping Cart?
0= off
1= on: Items Weight Amount
2= on: Items Weight Amount, but no weight when 0
3= on: Items Amount
to 2 so that it does now show the weight on the shopping_cart page in the totals at the top ...
Re: UPS shipping returns incorrect quotes
I only have the weight's displayed so I can quickly tell if something is amiss. Let me see if I can clarify my problem.... Your original solution to display shipping methods worked great. This code in the shipping/ups.php:
Code:
// if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
// }
Except when ordering multiple items with free shipping (UPS was quoting for a 1 lb package). So you suggested this change to the classes/shipping.php:
Code:
$total_weight += $_SESSION['cart']->free_shipping_weight;
Which fixes the quote shown on index.php?mainpage=shopping_cart
But when you continue to 'index.php?mainpage=checkout' the shipping quote shows correctly (In the delivery information heading; bottom left) but the actual charges in the order total are doubled and this is what customers are actually charged.
Re: UPS shipping returns incorrect quotes
What is the products_id that you are testing?
Re: UPS shipping returns incorrect quotes
Quote:
Originally Posted by
Ajeh
What is the products_id that you are testing?
That would be 121. Blisslight Spright - Green.
From further testing, it looks as if $total_weight includes free shipping weight so this code:
Code:
$total_weight += $_SESSION['cart']->free_shipping_weight;
Ends up including the free shipping weight twice. Do you know if there is somewhere i can get a full description of what data is included in the $_SESSION object?
If there were, for example, a $_SESSION['cart']->shipping_weight so I could build the $total_weight correctly for shipping methods I want to estimate.