Cart transform: Showing line item properties on add to cart

Hey all!

This might be a bit of a niche question, but I just want to make sure.
Following scenario:

I added 3 items to the cart with line item properties.
These 3 items are eligible for transformation via a cart transform merge operation.

Now, when I look in the network tab, I do not see 3 items added to the cart, but rather only the merged item. This also means I do not see the line item properties in the /cart/add.js network call for the 3 single items. I thought this was a thing in the past?

This would actually be really cool, since I want to write logic based on line item properties, and this would hide the actual line item property logic I use for the operation to succeed. => No exploit possible.

TL;DR
Is there a way to extract line item properties from lines that are used for a merge/expand operation via network information?

If you have questions, let me know :slight_smile:

Thank you!

Hi @Bosidev - if you need to pass data through the merge for downstream logic (e.g., in checkout or order processing), could you use the Cart Transform’s operations output to attach properties to the merged line, or use metafields on the cart/line items instead?

I believe the original line item properties are intentionally not exposed in the client-side cart data.

Yes, that is possible. But its not about the “parent” line items, but rather the “components” line items.

I think your last sentence is enough for me, thank you! :slight_smile: