good-idea / sane-shopify

MIT License
212 stars 15 forks source link

Find a better way to handle syncing custom values applied to product options #118

Open good-idea opened 4 years ago

good-idea commented 4 years ago

Product option info returned from Shopify only includes the values as strings, i.e.:

{
  name: 'Color',
  id: '....shopifyId',
  values: ['Green', 'Blue', 'Yello']
}

sync-utils will then create a new entry for each of these values. But, if these values change in Shopify, (i.e. Yello is changed to Yellow), there is no way of knowing that this is the same option as before, but with a new name. (The sanity key for each of these entries is generated from the value itself)

So, for now:

What would be nice: