I was able to get this to work on 4.0.7 by changing the following
Code:
$prodWeight = $prodArray['weight'];
$query .=<<<EOT
<Package>
<PackagingType>
<Code>$packaging_type</Code>
</PackagingType>
<PackageWeight>
<UnitOfMeasurement>
<Code>$UPS_wunit</Code>
</UnitOfMeasurement>
<Weight>$prodWeight</Weight>
</PackageWeight>
TO
Code:
$UPS_weight = $prodArray['weight'];
$query .=<<<EOT
<Package>
<PackagingType>
<Code>$packaging_type</Code>
</PackagingType>
<PackageWeight>
<UnitOfMeasurement>
<Code>$UPS_wunit</Code>
</UnitOfMeasurement>
<Weight>$UPS_weight</Weight>
</PackageWeight>
But I'd like to know if it splits them up only if bigger than 150, or no matter what