Sanity Connect for Shopify - Reference
Shopify Published State Stays in Sync with Product Status
v2024-09-27
Sanity Connect syncs product information between Shopify and Sanity. We now attempt to keep the Status
in Shopify linked to the publishing state in Sanity.
- If a product is 'Draft' in Shopify
- The document is created as unpublished in Sanity.
- Any changes to the product cascade to the unpublished draft in Sanity.
- If a product is 'Active' in Shopify
- The document is created as published in Sanity.
- Any changes to the product cascade to the published document as well as any unpublished draft.
If a product is Archived or switched to the 'Draft' status, then we attempt to unpublish the matched document in Sanity. This operation will fail if the published Sanity document is referenced by another document in your dataset. We allow the operation to fail, and we will attempt to unpublish the document again on the next sync.
Sync content to Shopify metaobjects
v2024-06-05
We're extending our Shopify integration to sync your Sanity documents and fields as Shopify custom data. Custom document types will sync as metaobjects. Custom fields on Products, Product Variants, and Collections will sync as metafields.
These metaobjects and metafields are available in your Liquid and Hydrogen-based Shopify storefronts.