Shopify Product JSON

How might I alter the Shopify Product Plugin to set all the selected product data to a JSON object block, instead of just the name being set to a string?

Hello @wonderkiwi and welcome to the community!

If you want to apply a field to a JSON field, you would have to add that field as an option on line 61 of this file: plugins/index.tsx at master · datocms/plugins · GitHub
Additionally, the field value setting logic on the field extension entrypoint should be a JSON always, and not a string, as if you try to add a non valid JSON to a JSON field you will receive a validation error plugins/FieldExtension.tsx at master · datocms/plugins · GitHub

1 Like