A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am looking for any api in shopify which could uncheck the online store options for some selected products is there any ? how can i achieve this ?
Solved! Go to the solution
This is an accepted solution.
Hi @techticpooja! At the moment, the ability to unpublish products from certain sales channels is limited to apps installed on Plus stores through the publishableUnpublish mutation in GraphQL. One way you could work around this though is by setting ProductStatus to "draft" when running a ProductUpdate mutation.
This would set the product to a draft status and remove it from being visible on sales channels, but for the moment you can't deselect specific sales channels on non-Plus stores. Hope this helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi @techticpooja! At the moment, the ability to unpublish products from certain sales channels is limited to apps installed on Plus stores through the publishableUnpublish mutation in GraphQL. One way you could work around this though is by setting ProductStatus to "draft" when running a ProductUpdate mutation.
This would set the product to a draft status and remove it from being visible on sales channels, but for the moment you can't deselect specific sales channels on non-Plus stores. Hope this helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog