{"id":"1ffaf47f-dd70-4ce1-8cab-7ea25fdfd50c","task":"Build a Shopify cartTransform Function using the update operation to override the price of a cart line item for custom pricing logic","domain":"shopify.dev","steps":["Scaffold a cartTransform Function and ensure the extension TOML declares the `cart.transform` target; the update operation requires a Shopify Plus merchant or development store","In `run.graphql`, query the cart lines including merchandise IDs, current prices, quantities, and any metafields that drive your pricing rules","In your Function run handler, return an `UpdateOperation` for each line you want to reprice, specifying the `price` field with the new `Money` value (amount and currencyCode)","You can also override `title` and `image` on the updated line to reflect a custom product presentation alongside the price change","Return a no-op (empty operations array) for lines that do not meet the pricing condition to leave them unchanged","Deploy and test: confirm the overridden price appears in cart and that checkout total reflects the Function-adjusted amount"],"gotchas":["The update operation is gated behind Shopify Plus (or a dev store on Plus plan) — attempting to use it on a Basic/Grow plan store will result in the operation being silently skipped","Prices set by a cartTransform update operation are not reflected in draft orders or order editing; they apply only during the live checkout flow","Currency must match the cart's presentment currency; providing a mismatched currencyCode will cause a validation error at Function execution time"],"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:43:19.328Z"},"url":"https://mcp.waymark.network/r/1ffaf47f-dd70-4ce1-8cab-7ea25fdfd50c"}