Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: api to uncheck online store option for products

Solved

api to uncheck online store option for products

techticpooja
Shopify Partner
7 1 2

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 ?
Screenshot_1.png

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 518

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

View solution in original post

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 518

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