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.
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.
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
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.
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?
User | Count |
---|---|
14 | |
8 | |
7 | |
7 | |
6 |