We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to add script tag in Shopify store with remix and node template?

How to add script tag in Shopify store with remix and node template?

YNV
Shopify Partner
4 0 0

Hello there,

 

1)

I am trying to add a script tag in the Shopify store but I can't find any document on it.

I just wanted to add a ".js" javascript file and inside this file, I want to fetch the information of the products.

 

2)

Is this doable on local files?

 

I followed this template to create an app.

https://shopify.dev/docs/apps/getting-started/build-qr-code-app

 

Replies 3 (3)

NickShi
Shopify Partner
26 3 4

Hi buddy,  it seems you need app extension , in app extension you can include .js file in blocks liquid file schema section. For get product info, you can setup the app proxy , then you can make http request start from the extension js file to get it.

 

Happy hunting.

- If helpful then please Likes and make it as a Solution.
- If you want to develop a store/app, or need custom software development services Email Me
YNV
Shopify Partner
4 0 0

Hi @NickShi, I appreciate your prompt response. Thank you. I am new to app development. Is there any document or video that includes this issue?

NickShi
Shopify Partner
26 3 4

In my previous reply already includes some useful resources 🙂

Anyway, the Shopify App dev docs include all you needs.

 

Good luck.

- If helpful then please Likes and make it as a Solution.
- If you want to develop a store/app, or need custom software development services Email Me