You could try customizing the code in UPS and change the function _upsRescom to read:
Code:
function _upsRescom($foo) {
global $order;
/*
switch ($foo) {
case 'RES': // Residential Address
$this->_upsResComCode = '1';
break;
case 'COM': // Commercial Address
$this->_upsResComCode = '0';
break;
}
*/
//echo 'UPS company: ' . ($order->delivery['company'] == '' ? 'No company' : 'Got a company') . ' len:' . strlen($order->delivery['company']) . '<br>';
if ($order->delivery['company'] == '') {
$this->_upsResComCode = '1';
} else {
$this->_upsResComCode = '0';
}
}
Now if there is a company name it will switch to commercial ...
Bookmarks