概要

納品書ボタンについて

<aside> 💡 弊社のJavaScriptでeギフト注文時には納品書ボタンを非表示にさせていただきます。 事業者様に必要な作業はございません。

</aside>

Untitled

メールでの納品書添付について

<aside> 💡 メールに納品書のタグを挿入されている場合、事業者様側でご対応が必要です。

</aside>

Untitled

対応手順

  1. 挿入している対象メールのコード編集をクリック

    スクリーンショット 2022-11-22 13.57.25.png

  2. 1行目に、以下を挿入します。(eギフトの注文かどうかを判断し、eギフトの注文メールのときにのみメールがカスタマイズされるようにします)

    {% assign isGift = false %}
    {% for line_item in line_items %}
      {% for property in line_item.properties %}
         {% if property.first == "ギフト購入" %}
            {% assign isGift = true %}
          {% endif %}
      {% endfor %}
    {% endfor %}
    
  3. 納品書のタグを見つけ、要素を **{% unless isGift %}**~~**{% endunless %}**で囲みます。以下のようになります。(囲むことで消せるようになります)

    <a href="<https://documents-app.mixlogue.jp/print?shop=qa-shop-online&t=ab39809&u={{customer.id}>}&o={{ id }}&locale=ja">納品書を表示する</a>
    
    {% unless isGift %}
    <a href="<https://documents-app.mixlogue.jp/print?shop=qa-shop-online&t=ab39809&u={{customer.id}>}&o={{ id }}&locale=ja">納品書を表示する</a>
    {% endunless %}