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,
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
Post a Comment