To spit the fact that many of you zen-cart lovers wont accept the fact that zen-cart has a few issues, this issue is zen-cart and not UPS. I read other threads where people are blaming UPS but its zen-cart. After doing some testing i found that the UPS module for zen pulls the shipping rate without the fuel surcharge, thus why the rates arnt matching what UPS.com or WorldShip say. To fix it, make this small change:
switch ($errcode) {
case 3:
if (is_array($returnval)) $returnval[] = array($result[1] => $result[8]);
break;
case 4:
if (is_array($returnval)) $returnval[] = array($result[1] => $result[8]);
break;
case 5:
$errorret = $result[1];
break;
case 6:
if (is_array($returnval)) $returnval[] = array($result[3] => $result[10]);
break;
}
In case 3 and 4 change the result[8] to result[10] which contains the correct shipping rate. Its a minor change but will correct the rate issues you are seeing.
Kamino84
Bookmarks