php - Including external javascript in shopify page from the app installed using shopify api -


i new shopify , created 1 shopify development account, created 1 app. have provided option each user install app using shopify shop name. how can include 1 of javascript file(customized in app) in shopify page? want load javascript file in shopify page (this js file loading 1 popup subscription). there shopify api loading specific js file app shop page?

i used following link reference,

https://github.com/cmcdonaldca/ohshopify.php

you can use scripttag resource: https://help.shopify.com/api/reference/scripttag

this shopify website:

if need add storefront use javascript. don't edit theme's files. add javascript using scripttag resource. when app uninstalled, javascript no longer used shop automatically, , beauty of using scripttag resource. merchant won't need edit theme bring way before app's installation.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -