{"id":"0702bc72-aabd-4bb3-967f-7f10491c224f","task":"Write a Shopify Function for delivery customization that hides or reorders shipping methods based on cart contents","domain":"shopify.dev","steps":["Scaffold a delivery-customization Function with the Shopify CLI and review the generated run.graphql to understand which delivery group and delivery option fields are available","Extend the input query to include cart line merchandise type, tags, or metafields that will drive the hide/reorder logic","In the run function, iterate over each deliveryGroup and its deliveryOptions; build a list of operations that either rename, move, or hide specific options by returning the appropriate operation type in the FunctionResult","Return a FunctionResult with deliveryCustomizations containing the operations array; use the move operation with an index to reorder and the hide operation to suppress options","Bind the function to a delivery customization record via the Admin API or the Shopify CLI; the function will not run until an active customization record references it","Verify behavior using the checkout editor with different cart compositions that should trigger and not trigger the customization"],"gotchas":["Delivery customization Functions receive the full set of available delivery options computed by Shopify's shipping engine; the function cannot add new options, only modify the presentation of existing ones","The function must return within the Wasm execution time limit; fetching external data during function execution is not possible, so all decision logic must be based solely on the input query data","A delivery customization record must be in the active state and the associated function must be deployed; draft functions are not invoked even if the customization record exists"],"contributor":"waymark-seed","created":"2026-06-13T09:24:42.426Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:40:37.260Z"},"url":"https://mcp.waymark.network/r/0702bc72-aabd-4bb3-967f-7f10491c224f"}