HULL: Did I set up something wrong?
Hey there, Sorry for the stupid issue, but I’m trying to deploy HULL through Sanity Studio, and my Shopify products won’t sync correctly. I did correctly followed the step 2, 3 and 4 (I added the variables in Vercel and not in a .env file), but when I add a product on Shopify and then sync items I got this :
store
{
"createdAt": "2022-02-10T09:48:46Z",
"id": 723xxxx,
"isDeleted": false,
"options": [
{
"_key": "Color",
"_type": "option",
"name": "Color",
"values": [
"Black",
"White",
"Green"
]
},
{
"_key": "Size",
"_type": "option",
"name": "Size",
"values": [
"Medium",
"Large",
"Slim"
]
}
],
"previewImageUrl": "https://cdn.shopify.com/s/files/1/xxxx/xxxx/xxxx/products/xxxx.png?v=xxxx",
"priceRange": {
"maxVariantPrice": 68,
"minVariantPrice": 68
},
"productType": "",
"slug": {
"_type": "slug",
"current": "test"
},
"status": "active",
"tags": "",
"title": "Test",
"updatedAt": "2022-02-10T09:48:50Z",
"variants": [
{
"_key": "a2dd95eb-43b4-4c42-b50e-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "04db40d1-7745-444b-a30d-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "090894fe-55e1-4327-82e5-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "4eddd48b-65ab-4287-832f-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "9784fc16-3781-48a6-86ea-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "9f8b1440-ba80-449a-a996-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "a10e4987-dc03-43db-970c-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "6c0565c6-2898-4e10-859d-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
},
{
"_key": "52db3a07-958a-47ff-9e70-xxxx",
"_ref": "shopifyProductVariant-xxxx",
"_type": "reference",
"_weak": true
}
]
}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (8 by maintainers)
Ok I was setting up the permission in the ‘Admin API Integration’ instead of the ‘Storefront API integration’. Now everything is working fine!
Thanks a lot for the help, you should pin this issue “noob noob guide”! 😁
Hey there @lborruto !
Are you using the Sanity Connect app on Shopify? The data you shared looks exactly like what is sync’d when using that app.
HULL is not built to work with that. Instead, it uses it’s own custom sync methods. If you use the Sanity Connect app it sync’s the shopify data down as a
store
object forproduct
documents, which would cause you to see theunknown field found
warning within Sanity for HULL studios.