Forums / Addon Shipping Modules / UPS shipping returns incorrect quotes Always Free Shipping and other Shipping

UPS shipping returns incorrect quotes Always Free Shipping and other Shipping

Started by phaylon on 2 May 2012, 8:13 PM · Views: 5,869

Results 21 to 23 of 23
26 Jul 2012, 6:26 PM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

UPS shipping returns incorrect quotes Always Free Shipping and other Shipping

So far, the only way I can see:
United Parcel Service (14.20lbs) (2nd Day Air): $88.39

on the checkout page is if I add Quantity 2 of products_id 121 with a 2lb attribute on it ...

So a 4lb item with a 2lb Attribute adding the Tare Rate that you have set of 10:1 and the Handling 4.00 ...

That gives a weight of 14.20lbs ... what is doubled here?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Jul 2012, 7:15 PM
#22
phaylon avatar

phaylon

New Zenner

Join Date:
Apr 2010
Posts:
22
Plugin Contributions:
0

Re: UPS shipping returns incorrect quotes Always Free Shipping and other Shipping

SOLVED:
Its correctly quoting free shipping only carts with the change I made:

```

// bof: add back Always Free Shipping weight
$free_ship_weight = $_SESSION['cart']->free_shipping_weight;
if ($free_ship_weight > $total_weight){
$total_weight = $free_ship_weight;
}


This corrected the shipping for free shipping carts and normal shipping carts, but fails to address mixed carts. Once I got a dump of the $_SESSION object, I was able to correct it. Here is the solution:

// bof: add back Always Free Shipping weight
	$total_weight = $_SESSION['cart']->free_shipping_weight + $_SESSION['cart']->weight;
// eof: add back Always Free Shipping weight

Thanks for your responses! So relieved! :)
26 Jul 2012, 10:35 PM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: UPS shipping returns incorrect quotes Always Free Shipping and other Shipping

Thanks for the update of what you had to do ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!