Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm seeing a strange behavior on my app blocks where previously saved setting values are not being displayed on the settings section in the theme editor. When I check the code for the template being used on the page, I can see the previously saved values in the app blocks' settings; however, the theme editor UI fails to display them. Saving the theme editor essentially wipes out any existing setting values as the UI perceives all of the values as being null.
Example app block setting:
{% schema %} { "name": "Example Block", "target": "section", "javascript": "example-block.js", "settings": [ { "type": "textarea", "id": "settingId", } ] } {% endschema %}
Example code for template used on page:
"blocks": { "{app-block-hash}": { "type": "shopify:\/\/apps\/app-name\/blocks\/example-block\/{hash}", "settings": { "settingId": "example value here" } } }
I'm using fake values above, but essentially I would expect "example value here" to be populated in the Example Block's setting for the textarea "settingId". However, all settings (for all input types) come back as null.
Did you manage to find a solution @ericnam ? We are having the same identical problem. I even tried creating a new theme app extension in shopify Cli3 and has the same behaviour.
Someone from Shopify can help us?
Hey! We also face the same problem, we even tried with the example from the documentation and it still doesn't work. We are waiting for help from Shopify.
Update: after several test, I noticed that this behavior only appears if you have an app turned on in the app embeds tab
I can confirm Andu95's observation as well - once ALL app embeds are disabled, the setting values come back on my app block. The embed doesn't have to be from your own app; if a there is even a third-party app embed enabled, then the setting values do not come through.
Update: we just received confirmation from shopify that they are working on a fix for this error, we hope it will be resolved by the end of this day.
i am get the same problem. pls fix soon
i added this blocks folder of theme app extensions but not show up in theme editor
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025