Commerce Packing (LAFF)
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
This module is a continuation of the work started by jhaskins which was spawned from a discussion in the Commerce UPS issue queue.
This module uses a packing algorithm I found on GitHub. The algorithm tries to fit the boxes (products) in a container (package) and then returns a height. This module is 'dumb' in that it just keeps chucking boxes at containers until everything fits, then it returns the package needed (brute force method).
Right now, it is ugly... but it works, with two caveat:
- You have to patch the shipping module you are trying to use. (See issue queue for Commerce UPS and Commerce USPS patches)
- If you have a large number (over 50) products to check, it may time out because it is dumb.
I want to do a lot more work on refining the code but I need to get a project out the door. I have been using this code in this project for several months during testing and it works. It's just ugly. I also have this working with the Commerce USPS module (see issue queue for patch).
Feedback welcome, help even more so. Just don't do one thing... don't tell me it's ugly. I already know that!
