Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

What are the generation rules for the Theme app extension block ID? Can it be specified manually?

What are the generation rules for the Theme app extension block ID? Can it be specified manually?

MikeGuo
Shopify Partner
10 0 0

I developed a Shopify app and created a Block within it.

 

Now, I added the Block I created to the page through the Theme Editor and noticed that the corresponding code was added to the Theme code as follows:

MikeGuo_0-1722330964517.png

The code within the dark red rectangle is automatically generated by the Theme Editor when I add my own block.

The green rectangle seems to contain the ID generated by the Theme Editor for the block.

 

It appears the rule is to concatenate the app name, the block name, and then a random string.

 

This confuses me because if I publish my app to the Shopify App Store and later change the app name, will it cause issues for the online stores that have already installed my app?

 

So, is there a way to fix the block ID, or use other fields besides the app name to generate the block ID?

Reply 1 (1)

MikeGuo
Shopify Partner
10 0 0

Is there anyone?