【问题标题】:How to show additional details in shopify admin order?如何在 shopify 管理员订单中显示其他详细信息?
【发布时间】:2017-07-07 10:13:04
【问题描述】:

我正在 Shopify 中创建一个应用程序,我必须在其中向 Shopify 添加其他字段并在 Shopify 订单管理页面中显示这些字段。请指导我完成这项任务。 请看截图http://prntscr.com/fsqiux

谢谢

【问题讨论】:

标签: shopify shopify-app


【解决方案1】:

Shopify 无法扩展管理页面。如果您需要将其他信息存储到对象(例如订单)中,则可以使用元字段。您可以使用 Metafield 做什么,所有资源都在 https://help.shopify.com/api/reference/metafield

进行了说明

【讨论】:

    【解决方案2】:

    您可以通过设置购物车属性简单地做到这一点。无需创建应用程序。

    Documentation

    例如,您可以使用以下代码。

    <p class="cart-attribute__field">
      <label for="new-attribute">New Attribute</label>
      <input id="new-attribute" type="text" name="attributes[New Attribute]" value="{{ cart.attributes["New Attribute"] }}">
    </p>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-21
      • 2022-01-15
      相关资源
      最近更新 更多