Hi all, I am experimenting with creating App Blocks for my app. I am following along with the documentation here.
I got to Step 5 and started having problems. I tried creating the product.json file, but Shopify gives me an error saying "File extension is not valid for file templates/product.json". The normal file would typically be called product.liquid
I tried using the code editor and pulling the theme into VSCode to see if I could do it like that, no luck.
I'm not sure what to do and because it's so new there's nothing to Google. Any help or ideas would be appreciated, thanks!
Solved! Go to the solution
I just spoke with support. Doesn't look like we can use this on live stores or dev stores created before June 29. Hope that gets changed in the near future as it's not feasible to rebuild an existing store!
"Based on checking my resources here with careful review, pre-existing stores don't have any option to convert it to Online Store 2.0. The 2.0 features will be available to a newly created development store as all new development stores from June 29th onwards. Based on checking here, I believe they may slowly roll out the feature to all stores, but it may also only be sandbox stores - it's a little unclear since it's so new. But I can confirm at this time it can only be used on newly dev stores for now."
This is an accepted solution.
Hi, I got the same error message and was not able to upload “product.json” into templates folder.
I tried the same process on the other development store which I created after June 29th.
It seems working now. I was able to upload “product.json into templates folder.
Also, I tried other features of new Shopify CLI on old development stores but I got many errors.
It seems that you need to make a new development store for trying out Shopify CLI’s new new features.