# Take Maximum Dimensions of Order Items

Packaging groups (as defined by order items) are checked in Prevalence order (highest number first) to compare maximum Order Item dimensions to the Packaging Type dimensions to work out the correct Packaging Type to assign to the order. The steps used by Linnworks when working with this method are as follows
1. Retrieve a list of all Packaging Groups linked to the order items
• The list will be ordered by the Prevalence as defined on the Packaging Group
2. Calculate the Order total Weight
3. Retrieve the maximum order item dimensions (Width / Height / Depth)
4. Calculate the volume of the order based on maximum dimension
5. Select Packaging type based on the following comparison
• Order Total Weight > Min Packaging Weight of the Packaging Type
• Order Total Weight <= Max Packaging Weight of the Packaging Type
• Order Volume <= Volume of the Packaging Type

### Example

Order contains 3 items
SKUWeightWidthHeightDepthPackaging Group
Item 1 20 50 170 20 Small Boxes
Item 2 30 200 170 15 Large Boxes
Item 3 37 95 30 40 Small Boxes
1. Retrieve potential Packaging Groups
Packaging GroupPrevalence
Small Boxes 100
Large Boxes 50
2. Calculate Order Total Weight
• 20 + 30 + 37 = 87
3. Retrieve Order Item Maximum dimensions
• Width = 200 (Maximum from Item2)
• Height = 170 (Maximum from Item1 or Item2)
• Depth = 40 (Maximum from Item3)

4. Calculate Order Volume

• 200 * 170 * 40 = 1,360,000
5. Compare values to select appropriate Packaging Group / Type
Packaging Group - Small Boxes
NameFrom WeightTo WeightWidthHeightDepthVolume
Small Box 1 0 10  100 100 25 250,000
Small Box 2 0 20 150 150 25  562,500
Small Box 3 0 30  175 175 50 1,532,250
Packaging Group - Large Boxes
NameFrom WeightTo WeightWidthHeightDepthVolume
Large Box 1 0 30 100 100 50  500,000
Large Box 2 0 100 200 125 50   1,250,000
Large Box 3 0 200  250 250 75  4,687,500
Result
• All Small Box types rejected due to Weight Range
• Large Box 1 rejected due to Weight Range
• Large Box 2 rejected in Weight Range, but outside Volume
• Large Box 3 Selected
• Order Weight (87) < Packaging Type To Weight (100)
• Order Volume (1,360,000) < Packaging Type Volume (4,687,500)