Personalized checkout and custom promotions with Shopify Scripts
Hello,
I created a metafield for the orders and i would like to set the value after the payment.
Is it possible to do this with an extension ?
I found that documentation : https://shopify.dev/docs/api/checkout-extensions/post-purchase/api#metafield
But when i generate an extension, post-purchase-ui is proposed instead of post-purchase.
Do you have an idea ?
Thanks a lot
Have you tried using Shopify Flow, it just might be the solution you are looking for here a link that you might find helpful
https://help.shopify.com/en/manual/shopify-flow/reference/actions/update-product-metafield
And If you want to make it more convenient please look at the bottom of this post.
Hello Ayan
Thank you for your response.
That could be a solution. https://help.shopify.com/en/manual/shopify-flow/reference/actions/update-order-metafield
No problem, If the solution works can you please mark it as an accepted solution so it could help people who later look at this post.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025