Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, I was wondering if there's a way in Teacommerce that I could have a single order but with different shipments for each order line. I'm working on a site that splits an order based on the stock levels for each product (e.g. 'In stock', 'available in 3-5 days', 'out of stock' etc.) and I'd ideally want the user to be able to select a different shipping method for each split. Any help would be much appreciated.
Unfortunately an order can currently only have 1 shipping method so it's not something that is supported out of the box.
The best approach I could think of would be to store different shipping method ID's agains the order lines and then create a Composite Shipping Method to use on the order. I'd then look at implementing a custom Shipping Method Calculator that detects your composite shipping method and then itterates the order lines for the actual shipping method IDs, and then sum up the values of all the other shipping methods.
You'd probably also then want to handle in the back office via a custom admin edit order view how you display the multiple selected shipping methods to the shop administrator.
Hope this helps
PS If you do store the different shipping methods on the order lines, you can use the Shipping Methods API to fetch and display these on the front end such as in your order confirmation screen.
Ok Matt, thanks for the quick response, I thought that might be the case and thought I'd double check just in case I was missing something.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted