Editing metaobjects from Shopfront

Topic summary

  • Goal: Store customer preferences (e.g., a charity ID per product or per order) using an Order-level metaobject, and determine if it can be edited from the storefront.

  • Feasibility: Direct storefront editing of metaobjects wasn’t confirmed as supported. Guidance suggested using the Shopify Admin GraphQL API via a custom app to handle such updates (e.g., via cURL or Shopify CLI 3 with GraphiQL).

  • Suggested tools: Shopify CLI (npm run dev, press G to open GraphiQL) and cURL for API calls.

  • Outcome: The author resolved their need by using cart attributes to capture the required data on the storefront, which their backend can consume—avoiding direct metaobject edits.

  • Status: Resolved. No further action requested; the cart attributes approach satisfies the original requirement.

Summarized with AI on January 6. AI used: gpt-5.

Apologises for the delayed response. Thanks for your input.

I was able to utilise the cart attributes field to populate the required data that can be used in my backend system.