How can I retain line item properties on the parent variant?

jam_chan
Shopify Partner
908 23 179

I'm using the expand operation in the cart transform API for my custom bundle app. Now, there is a line item property added to the parent variant (i.e. the bundle SKU). The line item property is added by the cart ajax API. When it's replaced by the individual products, the line item properties are lost.

 

What is the suggested way to retain the line item properties?

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
Replies 4 (4)

gr_trading
Shopify Partner
1822 143 189

Hi jam_chan, 

 

You can choose custom code option as alternative of bundle APP 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
jam_chan
Shopify Partner
908 23 179

Yes, I'm working on a custom code option in my bundle app

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview

IgnacioChiazzo
Shopify Staff
7 0 2

Line item properties of the parent should be preserved when using Expand, are you having issues with that?

To learn more visit the Shopify Help Center or the Community Blog.

jam_chan
Shopify Partner
908 23 179

How are the line item properties preserved? When the parent variant is replaced by the child variants, where do the line properties of the parent variant go? Which field can I find them?

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview