Knapsack Algorithm with Best Rate
I think that this would benefit 99.99% of ShipWorks Customers.
Here is an example:
You have an order with 3 line items, each of these products is defined in the products table with their dimensions.
Right now, ShipWorks will set the box dimensions to your default Shipping Profile because it doesn't know which box all 3 products will go in together or if they need to go into separate boxes.
Wouldn't it be nice if there was a way for ShipWorks to determine the smallest box needed for any combination of your products?
Wouldn't it also be nice if after it found that box, the box dimensions and weight are already filled out for you on the shipping screen so that Best Rate can find the cheapest carrier/service based on your business rules you have set up?
The picture below shows the output of my current version of this.
It works well but my current implantation isn't perfect yet.
TODO: If the shipment requires more than 1 package, check if the other items can fit in a smaller box instead of using the same box as the package before it.
Please sign in to leave a comment.
Comments
2 comments