Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Introduction

This is a module for better packing algorithm for the Drupal Commerce shipping modules. Commerce shipping modules only support the biggest box for packing. This is a huge problem when there are multiple products, with different sizes on one order because is going to be more expensive for your customer.

There are two PHP Libraries to solve this issues. BoxPacker and Largest Area Fit First (LAFF). At the moment Commerce Packing2 only support the LAFF library.

Commerce Packing Laff:

In this particular sub-module use the library "Largest Area Fit First (LAFF)" This library is 'dumb' in that it just keeps chucking boxes at containers until everything fits, then it returns the package needed (brute force method). I have been tested on order with 50+ product it would give you a time out. At the moment we only are supporting Commerce UPS and Commerce USPS. This module have an algorithm that tries to fit the boxes (products) in a container (package) and then returns a height.

Commerce Packing BoxPacker:

Coming Soon

For more information about 3D packing
http://tinyurl.com/ltymhc8

Requirements

This module requires the following modules:
- Libraries
- Commerce Physical
- Commerce
- LAFF Library

Similar modules

- Packing, only for developers.

Installation

- Install as you would normally install a contributed Drupal module. See:
https://drupal.org/documentation/install/modules-themes/modules-7
for further information.
- Add the LAFF library like this sites/all/libraries/laff/laff-pack.php

Configuration

Go to /admin/commerce/config/packing and the sizes of the packing boxes.

Troubleshooting

To see is working on your site you would need to enable API request messages API response messages with this module and without this module. You would notice that the response with this module is going to have a more accurate shipping estimation that without this module.

Road Map:
This module only support PHP library LAFF, this library is dumb. So I would be working on integrating the BoxPacker as well. Patches are always welcome.

Maintainers

Current maintainers:
* Darryl Norris (darol100) - https://www.drupal.org/u/darol100

AttachmentSize
commerce_ups.patch7.2 KB

Project information

  • Module categories: E-commerce
  • Created by darol100 on , updated