Vote up!
Vote down!

Is adding 2 or more shipping line items from different shipping methods/services, a viable scenario in Commerce?

We have "regular" products and "upsell" products, we need both on the same order, but due to the products nature and logistics, "upsell" products must use a different shipping service/method.

Does it makes sense to add two shipping line items to the order?

It seems Commerce assumes there will be only 1 shipping service selected for an order since that's the more common usage, so I'm guessing it will need some tweaks.


Asked by: Favio Manriquez
on June 6, 2013

1 Answer

Vote up!
Vote down!

Yeah, when I created Commerce Shipping 2.x, I enforced a default limitation of one shipping selection per order - at least for orders checked out via the default shipping service checkout pane. I don't believe we have any code that strictly enforces one shipping line item per order, though, so you should be able to do something like add the additional shipping line item upon checkout completion or something. In that sense, it's viable.

There may be a condition or code somewhere that assumes a single shipping line item per order, but you could just replace those with your own and not use the default functions.

Ryan Szrama
Answer by: Ryan Szrama
Posted: Jun 6, 2013