Theme app extension settings not displaying value in theme editor

Theme app extension settings not displaying value in theme editor

ericnam
Shopify Partner
9 0 11

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.

Replies 6 (6)

eddiedumi
Shopify Partner
2 0 1

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?

Andu95
Shopify Partner
3 0 4

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.

Andu95
Shopify Partner
3 0 4

Update: after several test, I noticed that this behavior only appears if you have an app turned on in the app embeds tab

ericnam
Shopify Partner
9 0 11

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.

Andu95
Shopify Partner
3 0 4

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.

hiepvq
Shopify Partner
1 0 1

i am get the same problem. pls fix soon

hiepvq_0-1696842586136.png

i added this blocks folder of theme app extensions but not show up in theme editor

Web application, frontend, backend prefer PHP