Explain Publishing Like I am 5 Years Old Please

HunkyBill
Shopify Expert
4430 40 476

I have a store with 6 Channels. I use GraphQL to get the 6 Channels.

When I am playing with a product, I can set its status to ACTIVE, and its published to true. Primitive, but it ensures the product is active and visible in Online Store channel.

The boss wants me to also ensure this said same product is visible on the 5 other Sales Channels, which I have IDs for.

What is the GraphQL sequence of API calls to make to ensure this product resource is now published on all of these other sales channels.

The documentation is beyond me, and stringing together the logic required is inducing minor irritations. I would LUV and APPRECIATE any guidance on this simple feat.

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Greg_Kujawa
Shopify Partner
1016 83 219

Oscar: Let's say your parents give you money to run a lemonade stand.

Michael: Okay.

Oscar: Rather than giving you $10 to go out and buy the lemons and the sugar, they give you $1 at a time. So you have to go to the grocer to buy what you need over and over again.

Michael: Mm hmm.

Oscar: After you have made about 5 round trips then you are so tired it's already getting dark out and your parents are calling you to come in.  

0 Likes
HunkyBill
Shopify Expert
4430 40 476

Sounds like you know what you are talking about.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Greg_Kujawa
Shopify Partner
1016 83 219

...and if your parents' name rhymes with Flightspeed Fleetail then once you get back home with all the stuff you realize your parents don't have pitchers or cups.

0 Likes
HunkyBill
Shopify Expert
4430 40 476

PublishPublishablePublishedResourceId to the publishableChannelPublished is not working. Help!  

seriously

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
HunkyBill
Shopify Expert
4430 40 476

The fact that no one has replied to this speaks volumes to two possible things, neither of which appeals.

1. No one does this, and so of course there will be no answer

2. No one does this, and that is pretty scary

 

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Greg_Kujawa
Shopify Partner
1016 83 219

AFAIK it's more of a manual route when it comes to the "other" sales channels. The last thread I saw indicated as such --> https://community.shopify.com/c/Shopify-APIs-SDKs/Product-Visibility-By-Channel-API/td-p/837205. Working with lots of product doesn't make the workaround that scalable for sure. 

0 Likes
HunkyBill
Shopify Expert
4430 40 476

I got a list of channels with Id's.

I got a collection, full of active products.

My boss says, ensure the products in that collection are visible on all 6 sales channels.

Pretty simple request. So far, no amount of playing with this concept has revealed anything of much use.

CollectionPublishInput seems like a great place to start. Specifies a collection to publish and the sales channels to publish it to. So great, let us use that. Oh, Wait...

- channel ID WHICH I HAVE is deprecated so use publication ID.

- channel handle, WHICH I HAVE is deprecated so use publication ID.

- publication ID   --> No clue where this comes from...

So it seems simple... until the reality hits... what is a publication ID? Where does it come from? What does it have to do with a channel? I have a channel, but it is not a publication?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Greg_Kujawa
Shopify Partner
1016 83 219

Here is what I see when looking for my test shop's publication ID's.

Untitled.png

So there isn't a GQL mutation that can assign a product to one or more of these publication ID's?

0 Likes
Greg_Kujawa
Shopify Partner
1016 83 219

For grins I tried the publishablePublish mutation in GraphiQL. It's likely a configuration/permissions issue but the request should work based on what I see.

Untitled.png

0 Likes