What is the way to propagate bundle Line Item Properties set on the parent item to the child?

Hi everyone,

I believe this topic has come up before, but I’d appreciate any clarity or updated insights.

Here are some related posts:

We’re building a multiple shipping app and currently storing shipping addresses using line item properties. Our flow looks like this:

  1. Create a draft order
  2. Complete the order
  3. Split the order by shipping address

However, we’ve run into a key issue: line item properties are lost for bundle components, especially when merchants use the Shopify Bundles app.

We’re now considering two possible solutions:

1. Cart Transform API

  • We understand that Shopify Bundles uses the Cart Transform API to create bundle structures.
  • However, we’re unsure if it’s possible for a third-party app to modify or extend an existing transform function used by the Bundles app.
  • From what we’ve seen (and possibly read), Shopify may not allow modifications to bundle components by third-party apps. Can anyone confirm this?

2. Switch to Cart Attributes

  • We’re exploring the idea of storing all shipping assignments in a cart attribute instead of line item properties.
  • But we have two concerns here:
    1. Is there a limit to the size of cart attributes? We’re potentially storing arrays of addresses and line item mappings.
    2. Is there a way to access the full structure of a bundle, including its components, either through the Cart API or another endpoint? We haven’t found any reliable documentation on this.

If anyone has experience with bundle structures, Cart Transform API limitations, or has implemented a similar multiple shipping solution, I’d love to hear your approach or thoughts.

Thanks in advance!