Can Shopify apps have only 1 theme extension?

Solved
Prudentt
Shopify Partner
49 6 9

I'm new to Shopify app development and i'm learning to create theme extensions.

 

I created an example theme app extension with the command npm run shopify app generate extension, and then created another one generating a new folder inside the extensions folder.

 

Then, i tried deploying my new extension with npm run deploy, but i got this error: 

You cannot register theme-extension because this app already has the maximum number of 1 registration allowed for this extension type.

 

So, is a Shopify app limited to creating only 1 theme app extension? if so, what if, for example i wanted to have 2 different theme app extension components in my app? For example a modal and a fixed banner bar in the top of the page. How could i manage to have include these 2 components in my app?

 

Thank you!

Accepted Solution (1)
Prudentt
Shopify Partner
49 6 9

This is an accepted solution.

@sanjar you have to create another .liquid file, not another folder as i did previously. Hope this helps

View solution in original post

Replies 5 (5)
sanjar
Shopify Partner
19 1 2

Any solution here? 

Prudentt
Shopify Partner
49 6 9

This is an accepted solution.

@sanjar you have to create another .liquid file, not another folder as i did previously. Hope this helps

sanjar
Shopify Partner
19 1 2

Yes i know, but it wont give you multiple extensions in theme customizer, it was possible before i did it on my test apps. 

 

 

npm run shopify app generate extension

 

 

Wont give you possibility to add second app embed block. 

Screenshot 2023-06-12 at 8.42.42 AM.png

 

Or do you mean add another liquid file inside blocks foldeR?

sanjar
Shopify Partner
19 1 2

Thank you it worked!!! Shopify docs sucks! 

Prudentt
Shopify Partner
49 6 9

You are welcome, and i 100% agree, it's so incomplete.