跳转到内容
安装应用
简体中文

在装箱单中显示选项

通过 Order Printer 或 Shopify 自带的装箱单模板,将选项详情添加到您的装箱单中。

有两种方法可以实现。请根据您打印装箱单的方式选择。

使用 Shopify Order Printer

我们的 Product Options 应用可与 Shopify 的 Order Printer 应用配合使用,让您直接在装箱单上包含自定义选项详情。

  1. 在 Shopify 后台 中点击 应用

  2. 从应用列表中选择 Order Printer

    Shopify 后台中的应用列表,Order Printer 已高亮显示

    从应用列表中打开 Order Printer。

  3. 点击 管理模板 > 装箱单

    Order Printer 模板页面,管理模板和装箱单模板已高亮显示

    管理模板,然后打开装箱单模板。

  4. 下载装箱单模板

    点击此按钮下载

  5. 复制代码 并 粘贴到“模板详情” 部分

    <div class="gpo-properties">
    {% assign property_size = line_item.properties | size %}
    {% if property_size > 0 %}
    {% for p in line_item.properties %}
    <div class="gpo-property">
    {% assign first_character_in_key = p.first | truncate: 1, '' %}
    {% unless p.last == blank or first_character_in_key == '_' %}
    <span>{{ p.first }}: </span>
    {%- if p.last contains '/uploads/' -%}
    <a href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
    {%- else -%}
    <span>{{ p.last }}</span>
    {%- endif -%}
    {% endunless %}
    </div>
    {% endfor %}
    {% endif %}
    </div>
    Order Printer 装箱单编辑器,代码片段已粘贴到模板详情字段中

    将代码片段粘贴到“模板详情”部分。

  6. 保存更改

通过 Shopify 设置

此方法让您可以直接在商店设置中更新 Shopify 内置的装箱单模板。

  1. 在 Shopify 后台 中点击 设置

  2. 前往 发货和配送

  3. 向下滚动到 装箱单模板 部分

    点击装箱单模板旁边的 编辑。

    Shopify 的发货和配送设置,装箱单模板行已高亮显示

    发货和配送,然后选择装箱单模板。

  4. 下载装箱单模板

    点击此按钮下载

  5. 复制代码 并粘贴到 编辑装箱单模板 字段

    <div class="gpo-properties">
    {% assign property_size = line_item.properties | size %}
    {% if property_size > 0 %}
    {% for p in line_item.properties %}
    <div class="gpo-property">
    {% assign first_character_in_key = p.first | truncate: 1, '' %}
    {% unless p.last == blank or first_character_in_key == '_' %}
    <span>{{ p.first }}: </span>
    {%- if p.last contains '/uploads/' -%}
    <a href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
    {%- else -%}
    {{ p.last }}
    {%- endif -%}
    {% endunless %}
    </div>
    {% endfor %}
    {% endif %}
    </div>
    Shopify 设置中的编辑装箱单模板字段,已粘贴代码片段

    将代码片段粘贴到“编辑装箱单模板”字段中。

  6. 保存

此页面对您有帮助吗?

报告问题