I want to hide/delete the Additional details in the Order Detail page . All this information are getting used in webhook. One solution i got is to delete all the attributes after order got created . Is there any other solution to do this ???
Hey @Amith_M , I think your solution works there if you do want to remove those, you could also likely set up an automation using the API (for example running an orderUpdate mutation and using a webhook as a trigger) to remove the custom attributes (additional details) from the order:
Just out of curiosity, are all of the details there being set by your app or other apps? Just wanted to know the use case you have for removing those to see if I can offer another workaround - hope this helps!
Thanks , @Alan_G . All the attributes are set by my app. Is there any other solution besides the orderUpdate
mutation? Is it possible to hide without deleting it .
Thanks for confirming @Amith_H.
Right now, there isn’t a way to hide the “Additional details” section in the Admin itself. If the data is saved as order attributes, it will show. If you still need attributes to appear on the orders/create payload, your current approach of immediately clearing them via orderUpdate
is the right workaround.
Another option you could look at would be writing the data to app-owned order metafields and fetching it in your webhook or through the API (those won’t usually appear in Admin unless you define/pin them, so that might be a good option to look at). There’s a bit more info on metafields here:
Hope this helps, let me know if I can help out further!
Thanks, @Alan_G. Some attribute values are dynamic, and I can’t update metafields through the Storefront API.
Thanks @Amith_M, ah, understood! You’re right, at the moment we don’t offer a way to update metafields through the storefront API. I’m happy to setup a feature request for you though on my end here.
Would you be able to share a bit more detail on your use case? Do you just need to wipe those order attributes after you’ve stored them on your app’s end and you don’t necessarily want the merchant to see them in the admin? Once I hear back from you I’ll get that feature request good to go on my end - hope to hear from you soon!