Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Myles Broomes 3 posts 73 karma points
    May 01, 2019 @ 07:33
    Myles Broomes
    0

    Order with multiple shipments per order

    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.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 01, 2019 @ 07:44
    Matt Brailsford
    0

    Hi Myles,

    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

    Matt

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 01, 2019 @ 07:46
    Matt Brailsford
    0

    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.

  • Myles Broomes 3 posts 73 karma points
    May 01, 2019 @ 07:56
    Myles Broomes
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft