问题描述
我想在 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 帐户,您将无法在结帐页面上更改任何内容。
,您可以在没有 Shopify Plus 的情况下在结账时修改感谢/订单页面。 Plus 需要在“谢谢”之前编辑任何步骤的结帐。
在附加脚本区域中围绕您的代码添加标签。这段代码对我有用:
<script>
// DEBUG {{ checkout.shipping_method.title }} has been used
{% if checkout.shipping_method.title != 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Added content box {{ checkout.shipping_method.title }}</p>`
)
{% endif %}
</script>