Specify the container based on the package size
This commit is contained in:
parent
c05c14bcc1
commit
3dbfc3e135
@ -119,8 +119,10 @@ class Rate extends RateAdapter
|
|||||||
*/
|
*/
|
||||||
if ($p->getWidth() > 12 or $p->getLength() > 12 or $p->getHeight() > 12) {
|
if ($p->getWidth() > 12 or $p->getLength() > 12 or $p->getHeight() > 12) {
|
||||||
$size = 'LARGE';
|
$size = 'LARGE';
|
||||||
|
$container = 'RECTANGULAR';
|
||||||
} else {
|
} else {
|
||||||
$size = 'REGULAR';
|
$size = 'REGULAR';
|
||||||
|
$container = 'VARIABLE';
|
||||||
}
|
}
|
||||||
|
|
||||||
$packages .= '<Package ID="' . $sequence_number .'">
|
$packages .= '<Package ID="' . $sequence_number .'">
|
||||||
@ -129,7 +131,7 @@ class Rate extends RateAdapter
|
|||||||
<ZipDestination>' . $this->shipment->getToPostalCode() . '</ZipDestination>
|
<ZipDestination>' . $this->shipment->getToPostalCode() . '</ZipDestination>
|
||||||
<Pounds>' . $p->getWeight() . '</Pounds>
|
<Pounds>' . $p->getWeight() . '</Pounds>
|
||||||
<Ounces>0</Ounces>
|
<Ounces>0</Ounces>
|
||||||
<Container>RECTANGULAR</Container>
|
<Container>' . $container . '</Container>
|
||||||
<Size>' . $size . '</Size>
|
<Size>' . $size . '</Size>
|
||||||
<Width>' . $p->getWidth() . '</Width>
|
<Width>' . $p->getWidth() . '</Width>
|
||||||
<Length>' . $p->getLength() . '</Length>
|
<Length>' . $p->getLength() . '</Length>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user