how to get settings_data.json same type

How can I get all type. Like above, I would like to have “type” = “ancher” all together by liquid?

How to access setting_data.json sections?

According to this page(Accessing sections data outside the section template?), is it not possible to take this information outside of template?

Then how I should handle this?

If you can access to private app, you can access the settings data by [ https://SITENAME.myshopify.com/admin/themes/THEMEID/assets.json?asset[key]=config/settings_data.json ] . The result will be show below, then you can just modified it via Javascript. Please note that you have to be careful with the scope of the data. If you have communicate with server, it must be better to retrieve only the setting data by the url though proxy server. The user might be able to see all theme information even your scope is permitted for read_themes.

0

No Comments

No comments yet

Leave a Reply

Your email address will not be published. Required fields are marked *