A developer encountered an issue where schema settings in a Shopify app suddenly returned null or incorrect values. Variables defined in a Liquid schema (example_id_one and example_id_two) were being accessed via block.settings and passed to JavaScript through window.ourConfig.
Initial Problem:
example_id_one returned empty
example_id_two returned the value of example_id_one instead
Standard troubleshooting (cache clearing, re-adding blocks, saving settings) didn’t resolve the issue
Discussion Points:
One user questioned the mismatch between defining section settings but reading them as block.settings
Another suggested checking config/settings_data.json or template JSON files to verify settings data
Resolution:
The developer discovered the root cause was a configuration mismatch in their dev store. They were editing settings in the admin panel for one item while testing on a different product page in the preview. The settings weren’t being applied across all product pages due to different templates being used.
Summarized with AI on October 24.
AI used: claude-sonnet-4-5-20250929.
which worked completely fine until i was testing our app today, and suddenly the variable that gets example_id_one is empty, and the variable holding example_id_two is example_id_one instead.
And i have tried removing and readding the block, and filling in all the settings as they where, but still get the same issue. And ensuring that i did in fact save the settings, as well as emptying my cache completely and doing hard refreshes of my browser
I have looked through documentation and talked to shopify support without any help, is there anyone who knows why this suddenly started happening? and what the solution would be
Is it an actual App?
Are these settings in App embed part of Customizer or on template?
If they are in App embed, you should check config/settings_data.json for data similar to this one, but for your app:
yes it is an actual app made in JS, so we have previously been able to use the structure that i posted to extract those values from the Admin panel of our app, but they suddenly don’t work anymore.
So we are using the whole shopify app dev from an IDE to test it
I found the solution, so apparently the dev store that we had made is using different templates or something(i did not do this so i couldn’t tell you) so i was filling in the fields in an admin panel for one item, and was in another item page in the dev store preview, and the setttings were not being set across all product pages.