Bundled Items > Custom Metafields on the bundle?

Hey,

I am wanting to create a bundled item, which has 2x other items and add a metafield to the item.

When the item is fulfilled, I need to retrieve the metafeild for the bundle, is this possible?

Can you elaborate the use and how far you are at implementing it?

Is it custom bundling? cartTransform mergeOperation?

When in the flow should the metafield be added? When the product is created (manually)?

Certainly you can retrieve the metafield after fulfilment; but what is the scope and reason?

Hey,

I am creating the bundle via graphQL and the order via GraphQL as well (in this instance)

what I am unsure of is what happens with properties/metafields on the lineitem when the item is a bundle? I know the group get stored, do the properties get stores in that group? does the components of the bundle get the properties of the parent/bundle?

1 Like

When you say GraphQL bundle of LineItem is that the cart mergeOperation to visually bundle the lines in the cart and checkout?

Then props should keep being attached to the line key, as when the order is created they are expanded back again.

Should be easy to test - does it not work since you’re asking :blush:? Would probably help to share some code.

Its custom bundling.

the metafield/properties are being included at the same time as the order is being created in the lineitem, for example:

mutation orderCreate
.....stuff
 lineItems: [
                {
                    priceSet: { shopMoney: { amount: 200.00, currencyCode: AUD } }
                    variantId: "gid://shopify/ProductVariant/XXXXX"
                    quantity: 1
                    properties: { name: "orderItemId", value: "12345684" }
                }
            ]

if the variantId is a bundle on this payload, what will happen to the properties for this lineitem?