ndimatteo / HULL

💀 Headless Shopify Starter – powered by Next.js + Sanity.io
https://hull.dev
MIT License
1.36k stars 167 forks source link

Shopify Product Images not syncing to Sanity #109

Closed GodwinEbikwo closed 1 year ago

GodwinEbikwo commented 1 year ago

Hi, thank you @ndimatteo for this project, everything seems to work fine including the setup. However, when I update my products in Shopify, the images, and product description doesn't sync into the sanity studio. Only Price, and Product name syncs well.

Please is this the expected behavior ?

Thank you for your response !

Screen Shot 2022-11-20 at 06 35 08
kuleyu commented 1 year ago

Yes, that is the expected behavior recently. You need to add these contents in this panel by yourself.

ndimatteo commented 1 year ago

Hey there @GodwinEbikwo as @kuleyu mentioned, this is the intended functionality. We only sync the bare minimum needed for products to power the add-to-cart and checkout experience. You can see what those are here: https://github.com/ndimatteo/HULL/blob/main/pages/api/shopify/product-update.js#L101-L116

Anything for presentation purposes is not sync'd between Shopify and Sanity. Instead, it lives in Sanity alone, allowing you to extend functionality and build custom product pages.

I hope that helps explain things!