No content to show
User Activity
In my case, I added it to my custom.js file. If you put it in a .js file, you should remove the <script> or </script> tags at the beginning and end of the above code. If you have a global.js file in your theme, that would be a good place to put it (i...
This code works for me as well! I'm using Shopify Forms on a Dawn-based theme. Only thing is I didn't know where '.form-container' was supposed to be, so I changed mine to '#app-embed'. Great find, thank you for sharing!
03-28-2024
I totally agree with you. I have a use case for using a variable defined in a snippet. I decided to stick with include until it's fully sunset. For now I couldn't find a way with render.
03-06-2024
This is an excellent answer, very thorough. As a developer, I appreciate answers like this instead of those who just push to use apps. Keep it up my friend!
Good call. Will do.
I'm using Shopify CLI v3.53.0 in VS Code. Since Friday 1/5 when I refresh the page I get: Internal Server Error wrong constant name }}getWEBrick/1.7.0 (Ruby/3.2.2/2023-03-30) at 127.0.0.1:9292 Anyone else having the same issue? For now if I refresh a...
Arti-Art, THANK you for your response! I've been fighting with the /change.js endpoint for hours and couldn't figure out why I was getting a 400 request in the response. I simply added a toString() to my id and now it works. The Shopify documentation...
Yes, this worked for me. In my case I was trying'shopify theme dev --store{store_name}, but instead I used'shopify theme dev --store store_name.myshopify.com and it worked.
Thank you so much @Tejas_Nadpara! I spent a day trying to do this through Javascript and this code was all I needed the whole time.