Is it possible to split the items in an order into different shipping parcels, which could be sent with different shipping methods?

Presumably this would require a new 'parcel' entity, and each order could have more than one... so quite a big change.

Comments

googletorp’s picture

You can't use multiple shipping methods to calculate fees on the same order.

I'm not sure how the gut of 2.x is working yet, but for 1.x you can make commerce shipping make multiple shipping line items, which could be 1 for each method used. You would have to create a custom method that with have the logic needed to call the other methods that would be needed to use. This would not be visible for the end user, but would be visible in the backend view of the order.

googletorp’s picture

Status: Active » Closed (fixed)

Closing due to inactivity in this issue.

joachim’s picture

Status: Closed (fixed) » Postponed

I am still definitely interested in this, it's just that development on a client project often takes a long time!

However, at this stage, it looks like my requirements are for something that isn't selected in the cart, but is determined by store admins, and optionally visible by the customer (so they can see which parts of their order have been shipped, for instance).

Given this separation, I think I'm going to initially at least work on this as a separate module with a 'parcel' entity, which we can perhaps look at integrating with Shipping later.

joachim’s picture

Just to say that -- for now at least -- I'm handling this with http://drupal.org/project/commerce_delivery, as the splitting of an order into multiple deliveries is being handled as a store admin only thing. The customer still only sees one shipping method for their entire order.

rszrama’s picture

Status: Postponed » Fixed

Thanks for the updates, joachim. I think the idea is out of scope for the core Commerce Shipping module and would've recommended a separate module like the one you've made. There's also the http://drupal.org/project/packaging module from the Ubercart shipping guru that I believe was intended to abstract divvying products up between parcels in a way that shipping method modules could use to rate shipments, but I don't know how far that ever got. I would've recommended a custom module, and with Shipping 2.x, so long as you're handling adding the shipping line items through your own code or through the admin UI, you can have as many as you want. On the normal checkout form, you'd typically only end up with a single shipping line item to represent the shipping service selected, but a module that wanted a single option on the checkout form to result in multiple line items would have the freedom to do so.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.