what is the function of the 'published_scope' field?

Eric_Howard
Shopify Partner
10 0 0

Is there any more documentation about the "published_scope" field for custom collections? What is the field used for?

From: http://docs.shopify.com/api/customcollection

published_scope
{ "published_scope" : "global"}

The sales channels in which the custom collection is visible.

Thank you!

0 Likes
Kevin_Hughes
Shopify Staff (Retired)
Shopify Staff (Retired)
130 0 18

"global" means it will be visible everywhere and "web" means it won't show up on Point of Sale.

laura44
New Member
1 0 0

Hello,

What about the other way around -  if you want a product to appear on POS, but not on web?

 

Thanks

Laura

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 134

Hi @laura44 ,

 

If you are a merchant/store-owner you can set this through the Shopify Admin webpage by going opening the page for your specific product, and then on the right side of the screen clicking the "Manage" link next to Product Availability to select which channels you want your product to be published on.

 

However if you are building an app and want to accomplish this via the API and not use the web admin, this is only possible through GraphQL using the following resources:

In order to perform these mutations, your app will need the scope "write_publications". As of right now, we are only granting this scope to Private Apps. If you would like your Private App to have this scope, go to your Shopify Partners Dashboard and reach out to 'Partner Support' for more details.

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes