sanity-io / sanity

Sanity Studio – Rapidly configure content workspaces powered by structured content
https://www.sanity.io
MIT License
5.08k stars 417 forks source link

Getting specific products in Shopify collection? #4104

Open heresyrj opened 1 year ago

heresyrj commented 1 year ago

Sanity sync Shopify collections, but it only provides meta data like GID, ID etc Is there a way we can get the array/lists of products contained in the collection?

Any help would be really appreciated!

joedawson commented 1 year ago

I'd be interested to also know how to approach this.

Is the goal here to use the rules associated with a collection, to build the query to fetch relevant products?

procrates commented 1 year ago

Also interested in this. At the moment collections only contains rules for automatic collection not for manual ones. And the automatic collections only have rules for some of the options in shopify.

Is there a way to open source the Sanity Connect so we can help? I know there been some updates towards integrating it to Liquid themes, but I see even more potential working towards a headless approach (I mean getting more data to sanity).

amlcodes commented 1 year ago

There seems to be difficulty with syncing the products field when using collections for featured, yearly, or promotional products. It doesn't work automatically but manually selecting the products does bring them in. Has anyone been successful with this issue?

manuelodelain commented 8 months ago

@amlcodes I'm looking for the same thing. Did you find a solution? It seems very weird to not have the products linked to a collection.

amlcodes commented 8 months ago

its a sanity connect limitation, it only gives you the collection name and id info. It can be put into sanity, but thats about the way you want to use sanity with shopify and it's data flow.

tabuchid commented 3 months ago

We also are looking into this. Looking forward to learning more

mfwgenerics commented 1 month ago

Surprised to find this limitation.