In this article, we will talk about how you customize your Shopify store using ScriptTag API.
Though, I recommend either taking my course or reading the documentary of Shopify to create a Shopify node project.
Okay, so let’s say we have the following JS file that allows us to install a ScriptTag to our development store.
In the code above, we have the function createScriptTag that uses the ScriptTag API endpoints (GET & POST) to check if there is an existing ScriptTag with the same URL that we set for the
src variable. If there’s none then the function will create the Script Tag.
Using Script Tags to customize store front
And in that file, we have the following code:
By opening your Shopify store, you should have the following output:
Woah, that’s it? That’s just too boring and simple…
Do you want to use a library and extend the functionality of your Shopify store? Heck yeah you can do that!
I have a video using that library so if you’re interested, you can watch it here: