I need to require some additional info for a product to be published to my sales channel.
I'm trying to add a new metafield via the API to a product, but it's returning an error message saying I need to populate the value...but I don't know the value, I need the merchant to fill that in...Not sure how to handle this?
Thanks!
I was following this documentation - see step 2 under product publishing. https://shopify.dev/tutorials/build-a-sales-channel-onboarding-and-account-connection-flow#product-p...
My understanding was that if I added a metafield, they would be able to set that metafield in their admin > products section.
So, that tutorial isn't very clear. The UI for editing the metafield value is provided by the sales channel app through the use of Admin Link app extension. The tutorial for doing that is here. So, your sales channel app needs to create the UI that allows a merchant to fill in the value, and only then can you save the metafield through the API.
User | Count |
---|---|
13 | |
12 | |
10 | |
8 | |
7 |