javascript - 为什么附加脚本在 shopify 中不起作用?
问题描述
我想在 Shopify 结帐页面的运输方式下添加一些额外的内容。像这样。我的参考网站 https://www.thegldshop.com
为此,我找到了这篇文章并添加了这个脚本
{% if checkout.shipping_method.title != 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Okay, we're ready for you to collect your products from 17 Mapple Crescent, Toronto. Our store is open 9:00 to 5:00 every day.</p>`
)
{% endif %}
但仍然不适合我。这是我的网站网址
解决方案
在 Shopify 中,您需要 Shopify plus 帐户才能在结帐页面上进行任何更改。如果没有 Shopify Plus 帐户,您将无法更改结帐页面上的任何内容。
推荐阅读
- angular - 新添加的组的扩展属性设置为 false
- r - 通过 vroom 和管道压缩文件到 pixz
- python - 我如何让我的机器人检测用户是否发送嵌入
- prisma-graphql - Prisma 1.34 GraphQL 查询嵌套对象
- django - Django - 是否可以对模型字段使用 pk 以外的其他值?
- makefile - Makefile 中的包含何时展开?
- arrays - 如何从 csv 文件中读取一行中的多个值以在 Jmeter 中将正文作为变量发布
- docker - 无法在 GitlabCI 中使用经过身份验证的用户拉取图像
- angular - 如何对 DataSource MatTableDataSource 的 SortingDataAccessor 进行单元测试
- vue.js - 如何在 vue 中设置 v-for 的第一个元素的样式?