首页 > 解决方案 > 为什么附加脚本在 shopify 中不起作用?

问题描述

我想在 Shopify 结帐页面的运输方式下添加一些额外的内容。像这样。我的参考网站 https://www.thegldshop.com

在此处输入图像描述

为此,我找到了这篇文章并添加了这个脚本

https://help.shopify.com/en/manual/orders/status-tracking/customize-order-status/show-content-based-on-shipping-method

{% 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 %}

但仍然不适合我。这是我的网站网址

https://hypeyourbeast.com/

标签: javascriptshopifye-commerceliquidshopify-template

解决方案


在 Shopify 中,您需要 Shopify plus 帐户才能在结帐页面上进行任何更改。如果没有 Shopify Plus 帐户,您将无法更改结帐页面上的任何内容。


推荐阅读