Details
-
New Feature
-
Status: Closed
-
Trivial
-
Resolution: Information Provided
-
None
-
None
-
None
-
new feature
-
Bug Crush Event - 21/2/2015
Description
Moved from old jira - 669. Placeholder for the feature.
–
Having gotten the USPS rate estimator working... I'm realizing that in order for it to be useful we need to get an accurate estimate of which box will be needed, and how much it weighs with packing materials.
Proposed Scheme
Add a new table for shipping boxes...
box id
height
width
depth
height uom
width uom
depth uom
—
usable height
usable width
usable depth
usable height uom
usable width uom
usable depth uom
weight
weight uom
etc
—
Algorithm...
1.) Requires all products height >= width >= depth... or have the dimensions ordered that way for algorithm
2.) Find Maximum Height Width and Depth of any product
3.) Calculate total shipping volume for all products
4.) For all boxes in the above table, sort by usable volume that is greater than total shipping volume.
5.) Searching box by box, accept the first box that is large enough in every dimension (max length, max width, max height).
6.) Add the weight of this box to the product weight... and use this for shipping.