|
The string is parsed in /app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php
The problem we were having is that the customer was not being charged for the rural delivery fees charged by UPS.
If you query UPS, it returns values for both a subtotal and a total. Magento is pulling the subtotal, which does not include fees added by UPS such as rural delivery fees.
We changed the following code in the above-mentioned file, function _parseCgiResponse:
case 3: case 4: if (in_array($r[1], $allowedMethods)) { $costArr[$r[1]] = $r[8]; $priceArr[$r[1]] = $this->getMethodPrice($r[8], $r[1]); } break;
We changed it to the following, just replacing the $r[8] values with $r[10]:
case 3: case 4: if (in_array($r[1], $allowedMethods)) { $costArr[$r[1]] = $r[10]; $priceArr[$r[1]] = $this->getMethodPrice($r[10], $r[1]); } break;
Our client’s website now charges their customers for the rural delivery fee.
|