I’m trying to brainstorm my way around this problem. I thought doing this as a draft order was the way, but doesn’t look like you can add that as a cart item.
So backing up, I’m trying to create bundle handling. I have two (or more) products with many variants, and I have builders managing attributes and the variants. The problem is that I cannot create a bundle via the Bundle API, because the variants and option counts exceed the limits.
What I want to do is create my own bundle handling via the product builder I have currently working. I want to bundle them (and discount appropriately) and then add the completed bundle item to the cart as a single cart item (you can’t remove a particular item of the bundle), you’d have to remove the entire bundle. So there is some heavy lifting that needs to be done - calculating pricing, grabbing the variants/attributes, and inserting single cart line.
You can add arbitrary custom items to draft orders, if your running your own stack present a set of line items however you want then redirect to the draft-order checkout url that will just have the custom line items to represent the merchandise.
Fixed dundles have a 30 component limit and custom bundles a 150 component limit