Out now! Check out the Poll results: Do you have a Shopify store?
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.

Themekit will not update nested metaobject template.

Solved

Themekit will not update nested metaobject template.

fevish
Shopify Partner
5 0 0

It appears themekit doesn't watch/see the file changes to the nested items under templates > metaobjects.

 

I have to login to the Shopify Admin, find the theme, and Edit Code in browser to make any manual code changes to a metaobject page template.

 

 

Is this expected behaviour -- is it time I move over to Shopify CLI?

 

Thanks!

Accepted Solution (1)

Liam
Community Manager
3108 344 889

This is an accepted solution.

Hi Fevish,

 

Theme Kit hasn't been updated for use with Online Store 2.0 functionality, and while it does work with some aspects of OS2.0, we do recommend that you use the Shopify CLI for theme development work on current/ non-vintage themes.

 

I tested out making changes to metaobject theme template files with the Shopify CLI and all actions I took worked as expected. I tested the following:

  • Created a metaobject theme template on the admin and successfully pulled this template file with the rest of my theme when I ran `shopify theme pull`.
  • Previewed the metaobject theme template in local environment with `shopify theme dev`.
  • Made change to the metaobject template JSON file in VSCode and saw the change populate across to the local development theme. 
  • Pushed change to the metaobject template JSON file back up to the live Shopify store.

If working with the metaobject template feature is important for you, I would recommend migrating to using the Shopify CLI. You'll also have other benefits of a more robust local dev environment which is worth migrating for. The install instructions are on shopify.dev - let me know if you run in any issues getting it up and running. 

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Liam
Community Manager
3108 344 889

This is an accepted solution.

Hi Fevish,

 

Theme Kit hasn't been updated for use with Online Store 2.0 functionality, and while it does work with some aspects of OS2.0, we do recommend that you use the Shopify CLI for theme development work on current/ non-vintage themes.

 

I tested out making changes to metaobject theme template files with the Shopify CLI and all actions I took worked as expected. I tested the following:

  • Created a metaobject theme template on the admin and successfully pulled this template file with the rest of my theme when I ran `shopify theme pull`.
  • Previewed the metaobject theme template in local environment with `shopify theme dev`.
  • Made change to the metaobject template JSON file in VSCode and saw the change populate across to the local development theme. 
  • Pushed change to the metaobject template JSON file back up to the live Shopify store.

If working with the metaobject template feature is important for you, I would recommend migrating to using the Shopify CLI. You'll also have other benefits of a more robust local dev environment which is worth migrating for. The install instructions are on shopify.dev - let me know if you run in any issues getting it up and running. 

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

fevish
Shopify Partner
5 0 0

Thanks for confirming Liam, I guess it's time to migrate to CLI 🫡