PhoenixKitEcommerce.Web.ShopifySync (PhoenixKitEcommerce v0.3.0)

Copy Markdown View Source

Admin LiveView for the Shopify → shop one-way sync.

Fetches products from the Shopify Admin API connection registered in PhoenixKitEcommerce.Shopify.Provider, diffs them against the local catalog (PhoenixKitEcommerce.Shopify.Sync.check/1), and lets an operator apply changes — nothing is written without an explicit click. Price-only, non-extreme changes get a bulk "apply all" button (the proven shape from the single-store implementation this generalizes); every other change — any non-price field, or an extreme price swing — requires its own per-product confirmation.

Only updates products that already exist locally (matched by Shopify's handle against the product's slug). A Shopify product with no local match is skipped — creating new products is the CSV import's job, not this sync's.