How do I lock an order to prevent further edits before it is fulfilled? Our warehouse does not support order edit after submission and I wonder how I can prevent further order edits after submission before the order is fulfilled?
So it doesn’t look like there’s a native way to achieve this but you could create an order metafield that would be a boolean that you could use for locked/unlocked on an order. Then, in your app, you could set up logic to check the locked
metafield before allowing any edits to the order. If the metafield value is true
, block any edit operations.
But this won’t prevent people from editing the order from shopify’s admin portal, which is what I need here.
I see what you mean - unfortunately, there’s currently no direct method in the Shopify Admin API to prevent order edits specifically in the Admin UI. You could limit access on staff accounts, but the limits might not be granular enough for your purposes.