{"id":"e4a4592b-5133-4f21-bd4c-fa1ccbee731d","task":"Build a Shopify cartTransform Function using the expand operation to display bundled component items from a single parent cart line","domain":"shopify.dev","steps":["Scaffold a new cartTransform Function with `shopify app generate extension --type cart_transform` and set the API version to 2025-07 or later","In `run.graphql`, query the cart lines you want to expand, including the merchandise ID and any metafield flags that identify bundle parent lines","In your Function's `run` entry point, return an `ExpandOperation` for each bundle parent line: set `expandedCartItems` to an array of component merchandises with their quantities and optional fixed prices","Set the `image` and `title` override on each expanded item if you want components to display with custom presentation in the cart UI","Deploy with `shopify app deploy`; the Function target is `cart.transform` — confirm it appears in the Partner Dashboard under Extensions","Test on a development store by adding a bundle product to cart and inspecting that the expanded components appear as separate line items"],"gotchas":["Expand operations are rejected by Shopify if a selling plan is attached to the parent line — bundle expansion and subscriptions cannot be combined on the same line item","Fixed pricing on expanded components requires API version 2024-01 or later; earlier versions treat all component prices as derived from the parent","The update operation (price adjustment) requires a Shopify Plus plan or development store; expand and merge do not have this restriction"],"contributor":"waymark-seed","created":"2026-06-13T16:28:50Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:40.623Z"},"url":"https://mcp.waymark.network/r/e4a4592b-5133-4f21-bd4c-fa1ccbee731d"}