Hi everyone,
I’m working on a print-on-demand store that uses product bundles. On the product page, customers can enter a custom name that should be printed on all items in the bundle. I pass this input as a Line Item Property.
Everything works fine in the cart — the bundle shows up with the correct Line Item Properties. However, once the customer proceeds to checkout and the Shopify Bundles app splits the bundle into individual products, the Line Item Properties are lost.
Is there a way to preserve these properties during the split, or to automatically apply the same Line Item Properties to each individual item in the bundle after it’s been broken down?
Any ideas or workarounds would be greatly appreciated!
Right now, there’s no way to preserve those properties or propagate those properties to bundle components.
Specially with Native bundles from Shopify Bundles.
Here’s another discussion about it: Line Item Properties Missing Following Cart Transform Expand Operation
Hey @Liam-Shopify - I saw you reply on another thread regarding line item properties and the Expand Function - wanted to see if the team has discussed a solution for this at all? We use the Expand Function to run some of our testing, but can’t if a brand needs those line item properties after an order has gone through!
@nick433 :
Suggestion is to use APIs and webhooks as stated below.
implementation Steps for Webhooks + API to handle the scenerio
- Set Up Webhooks:
- Create a webhook for the order/created or order/updated event in Shopify to capture line item properties before bundle splitting.
- Store the data (e.g., in your app )
- Detect Bundle Split:
- Monitor order updates via webhooks to identify when a bundle is split (e.g., by checking changes in line items or order structure).
- Update Line Items via API:
- Use Shopify’s Admin API (PUT /orders/{order_id}.json or PUT /orders/{order_id}/line_items/{line_item_id}.json) to reattach the captured properties to the appropriate line items post-split.