Top Menu

Shopify Excel-Like json_string metafield type

12 Aug 2019 18:51 - 12 Aug 2019 19:15 #5829 by Sophia
We have a namespace that contains several metafields of type "json_string". When we create new instances of these metafields using Excel-Like Bulk Product Manager for Shopify, they are created as type "string".

With the exception of this behaviour, Excel-Like Bulk Product Manager works very well for our needs. Is there a method to change the type of a metafield? Alternatively, can the behaviour of the application be changed to respect the type of those metafields which already exist?

Please Log in or Create an account to join the conversation.

13 Aug 2019 09:01 #5831 by Super User
Replied by Super User on topic Shopify Excel-Like json_string metafield type
Hi,

that type is relatively new. I think it appeared in June.
We will certainly add support for it by end of this month.   

Thanks,

Please Log in or Create an account to join the conversation.

15 Aug 2019 13:27 #5834 by Super User
Replied by Super User on topic Shopify Excel-Like json_string metafield type
JSON_STRING is added.

You can just edit it as string or you can select special editor under field settings.

Thanks,

Please Log in or Create an account to join the conversation.

05 Sep 2019 20:11 #5843 by Sophia
Good day,

Thank you for your attention and responsiveness in adding the feature to edit metafields of type JSON_string.

Upon setting the metafield type to "JSON string" and the editor type to either "simple" or "JSON editor" we notice two different behaviours:

First, the simple editor appears to still create type "string" (as revealed by exporting using Excelify; see attachment).



Second, when using the tabular JSON editor the type appears to be correctly set to "JSON string" (as seen in Excelify export). However, the tabular JSON editor converts existing arrays [...] to objects {...} which is not expected, and not handled properly by our theme, or other apps that edit metafields (e.g. Accentuate; see attachments).






Can you advise as to whether this behaviour is in error, or can be corrected?

Thank you again for your care and attention.

Please Log in or Create an account to join the conversation.

06 Sep 2019 10:28 #5844 by Super User
Replied by Super User on topic Shopify Excel-Like json_string metafield type
Hi,

we added a new type meta "JSON Array String".

in Shopify documentation there is an instruction to always use object so we did not even consider array then. Now you have it as well.

Thanks,
The following user(s) said Thank You: Sophia

Please Log in or Create an account to join the conversation.

06 Sep 2019 20:07 #5845 by Sophia
I am pleased to report that the new JSON Array string type functions as expected, and that the tabular editor works well.


The results render properly in our template, and other metafield apps. Well done!




Choosing the simple editor also allows for whole arrays to be copied and pasted from one field to another.

The only unexpected behaviour occurs in split view, where the HTML/code editor appears, but changes don't appear to be saved.



(As a feature suggestion, it would be useful to provide access to both the simple editor in the main grid view, and the tabular editor in the split view, for flexibility. Accentuate also helpfully un-escapes the content of each element and renders the resulting HTML, which is extremely user-friendly.)

For the most part, the main issue is resolved and we can now edit our data without error. Thank you for your responsive support.

Please Log in or Create an account to join the conversation.

07 Sep 2019 14:22 #5846 by Super User
Replied by Super User on topic Shopify Excel-Like json_string metafield type
Ok,

simple box is now used in top editor.
We will add grid editor also in following weeks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.047 seconds