REVISED TO PROVIDE RESIDENTIAL NEGOTIATED RATES:
added this field - ‘ResidentialAddressIndicator’ => ‘’,
to the ship to section
app/Tygh/Shippings/Services/Ups.php
Make a backup of your original file before making the change.
This may not be the final version.
Replace this:
‘PickupType’ => [
‘Code’ => $pickup_type,
],
‘Shipment’ => [
‘Service’ => [
‘Code’ => $this->_shipping_info[‘service_code’],
],
‘Shipper’ => [
‘Address’ => [
‘PostalCode’ => $this->package[‘origination’][‘zipcode’],
‘CountryCode’ => $this->package[‘origination’][‘country’],
],
],
‘ShipTo’ => [
‘Address’ => [
‘StateProvinceCode’ => $this->package[‘location’][‘state’],
‘PostalCode’ => $this->package[‘location’][‘zipcode’],
‘CountryCode’
=> $this->package[‘location’][‘country’],
‘ResidentialAddress’ => ‘’,
],
],
‘ShipFrom’ => [
‘Address’ => [
‘StateProvinceCode’ => $this->package[‘origination’][‘state’],
‘PostalCode’ => $this->package[‘origination’][‘zipcode’],
‘CountryCode’ => $this->package[‘origination’][‘country’],
‘ResidentialAddress’ => ‘’,
]
]
with this:
‘PickupType’ => [
‘Code’ => $pickup_type,
],
‘CustomerClassification’ => [
‘Code’ => ‘00’,
],
‘Shipment’ => [
‘Service’ => [
‘Code’ => $this->_shipping_info[‘service_code’],
],
‘Shipper’ => [
‘Address’ => [
‘PostalCode’ => $this->package[‘origination’][‘zipcode’],
‘CountryCode’ => $this->package[‘origination’][‘country’],
‘City’ => $this->package[‘origination’][‘city’],
],
],
‘ShipTo’ => [
‘Address’ => [
‘StateProvinceCode’ => $this->package[‘location’][‘state’],
‘PostalCode’ => $this->package[‘location’][‘zipcode’],
‘CountryCode’ => $this->package[‘location’][‘country’],
‘City’ => $this->package[‘location’][‘city’],
‘ResidentialAddressIndicator’ => ‘’,
],
],
‘ShipFrom’ => [
‘Address’ => [
‘StateProvinceCode’ => $this->package[‘origination’][‘state’],
‘PostalCode’ => $this->package[‘origination’][‘zipcode’],
‘CountryCode’ => $this->package[‘origination’][‘country’],
‘City’ => $this->package[‘origination’][‘city’],
]
]