Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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

jam_chan
Shopify Partner
927 23 190

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 6 (6)

gr_trading
Shopify Partner
1948 145 204

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
927 23 190

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
927 23 190

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
thecontractor
Tourist
5 0 2

I'm looking for this answer too. Have you found out anything new since this post?

I fix stuff and I know things.
Florian123
Tourist
4 0 0

I am looking for this exact same thing. Preserving the line item properties of the parent product, when expanding them into child products.
There was an update lately (https://shopify.dev/docs/api/release-notes/2024-04#shopify-function-apis-changes) that should make this possible. However I am not sure how to implement this. Does anybody know?