# 明細書にcart attributeで入力したメモを表示したい

**URL:** <https://community.shopify.com/t/cart-attribute/50053>\
**Category:** 技術的なQ＆A\
**Created:** [June 17, 2021, 12:14pm UTC](https://community.shopify.com/t/cart-attribute/50053 "2021-06-17T12:14:51Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

Shopifyのデフォルト明細書（packing slip）に、cart attributeで取得した顧客メモを表示したいという質問。cart attributeは、カート画面で追加した任意の注文情報を注文に持たせる仕組みとして扱われている。

回答では、調査ベースで次の点が示された。
- Shopify公式の明細書用変数一覧には、cart attributeに該当する項目が見当たらない。
- そのため、デフォルトの明細書テンプレートでは直接表示できない可能性が高い。
- 代替案として、Order Printerアプリではカスタム属性を出力できそうな事例が紹介された。

参照先として、Shopify Communityの関連スレッド、packing slipの変数一覧、Order Printerのアプリページとテンプレートカスタマイズ資料が挙げられている。

結論として、デフォルト明細書で使う具体的な変数名は提示されておらず、標準機能だけでの実現は難しそう。現時点では、Order Printerの利用・検証が有力な対応策として示されたが、最終的な解決確認までは至っていない。

<div class="post-metadata">

**Author:** ![Kaori\_2](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@Kaori\_2](https://community.shopify.com/u/Kaori_2)\
**Post date:** [June 17, 2021, 12:14pm UTC](https://community.shopify.com/t/cart-attribute/50053/1 "2021-06-17T12:14:51Z")

</div>

Shopifyのデフォルトの機能の明細書に

cart attributeを使用し入力した顧客情報に表示されるメモを明細書に表示させたいのですが

どんな変数を用いれば表示されますでしょうか？

※cart attributeについてはこちらの記事を参考にしました

[https://www.shopify.jp/blog/partner-shopify-theme-customize-cart-attributes-line-item-property-customer-note](https://www.shopify.jp/blog/partner-shopify-theme-customize-cart-attributes-line-item-property-customer-note)

---

<div class="post-metadata">

**Author:** ![Jizo\_Inagaki](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/jizo_inagaki/32/149480_2.png) [@Jizo\_Inagaki](https://community.shopify.com/u/Jizo_Inagaki)\
**Post date:** [June 27, 2021, 1:24pm UTC](https://community.shopify.com/t/cart-attribute/50053/2 "2021-06-27T13:24:47Z")

</div>

実際に試していませんが、調べたところ以下のスレッドが該当するかと思います。

[https://community.shopify.com/c/Payments-Shipping-Fulfillment/Packing-Slip-Template-Custom-Attributes/td-p/571212](https://community.shopify.com/c/Payments-Shipping-Fulfillment/Packing-Slip-Template-Custom-Attributes/td-p/571212)

以下のヘルプでも確かに一覧に上がっていないことが確認できます。

[https://help.shopify.com/ja/manual/orders/packing-slips-variable-list](https://help.shopify.com/ja/manual/orders/packing-slips-variable-list)

前出のスレッドでOrder Printerの名前が出ていたのでこちらも調べたところ、以下を見ますと出力できそうではあります。

[https://community.shopify.com/c/Shopify-Apps/Show-separate-custom-cart-attribute-fields-in-order-printer-pro/td-p/640250](https://community.shopify.com/c/Shopify-Apps/Show-separate-custom-cart-attribute-fields-in-order-printer-pro/td-p/640250)

[https://community.shopify.com/c/Shopify-Design/Shopify-Order-Printer-App-Custom-Fields/td-p/337581](https://community.shopify.com/c/Shopify-Design/Shopify-Order-Printer-App-Custom-Fields/td-p/337581)

参考:

[https://apps.shopify.com/order-printer?locale=ja](https://apps.shopify.com/order-printer?locale=ja)

[https://help.shopify.com/ja/manual/orders/order-printer/customizing-order-templates](https://help.shopify.com/ja/manual/orders/order-printer/customizing-order-templates)
