Script Tags in shopify checkout

拜拜、爱过 提交于 2019-12-06 00:32:18

问题


I'm looking at developing an app for Shopify which will add functionality to a store's checkout page. It would be ideal if the user didn't have to copy and paste code into files themselves hence I was looking at using the ScriptTag API ( http://api.shopify.com/scripttag.html ) to include a custom javascript file.

I've worked through some of the examples on the aforementioned API page and can get a custom script included on every page on my test store except for the checkout page. I've changed the src to start with 'https://' as suggested by the tutorial but my script still doesn't run or even appear in the page source for the checkout.

Does anybody have any ideas how I can get this working for the checkout? Is what I'm trying to do even possible?


回答1:


The only page of the checkout that script-tags are loaded into is the Thank You page that appears after an order has been completed.

The pages for steps 1 & 2 of the checkout cannot have script-tags added to them for security reasons.



来源:https://stackoverflow.com/questions/12951866/script-tags-in-shopify-checkout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!