# Order printer のカスタムに関して

**URL:** <https://community.shopify.com/t/order-printer/96227>\
**Category:** Shopify アプリ\
**Created:** [February 2, 2022, 6:52am UTC](https://community.shopify.com/t/order-printer/96227 "2022-02-02T06:52:42Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

Order Printerアプリの納品書テンプレートをカスタムし、割引前の小計（定価の合計）を表示する方法を質問。Liquidで参照すべきタグ（変数）が分からず、テーブル内に定価の合計を出したいが実装に失敗している。

提示内容は、日付（created_at）、注文番号（order_name）、ショップ住所の出力コードを含むテンプレート断片。住所は英語表記の都道府県を日本語へ置換するフィルタチェーンが多数含まれており、コードスニペットが理解に重要。

求める支援は、割引適用前の小計を取得・表示する正しいLiquidタグや書き方の具体例。Order Printer（Shopifyアプリ）における小計・割引・定価のプロパティの使い分けに関する助言が必要。

現時点で回答や実装例は提示されておらず、解決・決定事項はない。議論は未解決で継続中。

<div class="post-metadata">

**Author:** ![Yuta\_M](https://avatars.discourse-cdn.com/v4/letter/y/e56c9b/32.png) [@Yuta\_M](https://community.shopify.com/u/Yuta_M)\
**Post date:** [February 2, 2022, 6:52am UTC](https://community.shopify.com/t/order-printer/96227/1 "2022-02-02T06:52:42Z")

</div>

お世話になっております。

Order Printerというアプリを使用しており、納品書の作成をしていたのですが

割引前の小計のタグがわからず質問させていただきます。

以下引用の中で、中盤に合計とありますがテーブル内に定価の合計を表示したかったのですがうまく実装できませんでした。

どなたか知恵を貸していただけないでしょうか？

> 

> {{ created\_at | date: “%Y/%m/%d” }}  
> ご注文番号 {{ order\_name }}\>

> > >

**〇〇株式会社**

> 〒{{ shop.zip | upcase }}  
> {{ shop.province | replace: ‘Aichi’, ‘愛知県’ | replace: ‘Akita’, ‘秋田 県’ | replace: ‘Aomori’, ‘青森県’ | replace: ‘Chiba’, ‘千葉県’ | replace: ‘Ehime’, ‘愛 媛県’ | replace: ‘Fukui’, ‘福井県’ | replace: ‘Fukuoka’, ‘福岡県’ | replace: ‘Fukushima’, ‘福島県’ | replace: ‘Gifu’, ‘岐阜県’ | replace: ‘Gunma’, ‘群馬県’ | replace: ‘Hiroshima’, ‘広島県’ | replace: ‘Hokkaidō’, ‘北海道’ | replace: ‘Hyōgo’, ‘兵庫県’ | replace: ‘Ibaraki’, ‘茨城県’ | replace: ‘Ishikawa’, ‘石川県’ | replace: ‘Iwate’, ‘岩手県’ | replace: ‘Kagawa’, ‘香川県’ | replace: ‘Yamanashi’, ‘山梨県’ | replace: ‘Yamaguchi’, ‘山口県’ | replace: ‘Kōchi’, ‘高知県’ | replace: ‘Kumamoto’, ‘熊本県’ | replace: ‘Kyōto’, ‘京都府’ | replace: ‘Mie’, ‘三重県’ | replace: ‘Yamagata’, ‘山形県’ | replace: ‘Miyazaki’, ‘宮崎県’ | replace: ‘Nagano’, ‘長野県’ | replace: ‘Nagasaki’, ‘長崎県’ | replace: ‘Nara’, ‘奈良県’ | replace: ‘Niigata’, ‘新潟県’ | replace: ‘Ōita’, ‘大分県’ | replace: ‘Okayama’, ‘岡山県’ | replace: ‘Okinawa’, ‘沖縄県’ | replace: ‘Ōsaka’, ‘大阪府’ | replace: ‘Saga’, ‘佐賀 県’ | replace: ‘Saitama’, ‘埼玉県’ | replace: ‘Shiga’, ‘滋賀県’ | replace: ‘Shimane’, ‘島根県’ | replace: ‘Shizuoka’, ‘静岡県’ | replace: ‘Tochigi’, ‘栃木県’ | replace: ‘Tokushima’, ‘徳島県’ | replace: ‘Tottori’, ‘鳥取県’ | replace: ‘Toyama’, ‘富山県’ | replace: ‘Tōkyō’, ‘東京都’ | replace: ‘Miyagi’, ‘宮城県’ | replace: ‘Wakayama’, ‘和 歌山県’ | replace: ‘Kanagawa’, ‘神奈川県’ | replace: ‘Kagoshima’, ‘鹿児島県’ }}\> {{ shop.city }}\> {{ shop.address }}\> {{ shop.address2 }}  
> Phone: {{ shop.phone }}  
> Email: {{ shop.email }}
> 
> >

* * *

> > ## 納品書\> \> ### 購入商品明細\> \> \> \> \> \> \> \> {% comment %}\> {% if show\_line\_item\_taxes %}\> \> {% endif %}\> {% endcomment %}\> \> \> \> \> {% for line\_item in line\_items %}\> \> \> \> \> \> \> {% endfor %}\> \> \> \> {{ cart.original\_total\_price | money }}\> \> \> \>
> > 
> > | 
> > 
> > 商品名
> > 
> > | 
> > 
> > 単価
> > 
> > | 
> > 
> > 数量
> > 
> > | 
> > 
> > (内消費税)
> > 
> > | 
> > 
> > 小計
> > 
> > |
> > | --- | --- | --- | --- | --- |
> > | 
> > 
> > {{ line\_item.title }}
> > 
> > > {% if line\_item.sku != blank %}({{ line\_item.sku }}){% endif %}\>
> > 
> > | 
> > 
> > {{ line\_item.price | money }}
> > 
> > | 
> > 
> > {{ line\_item.quantity }}
> > 
> > | 
> > 
> > {{ line\_item.line\_price | money }}
> > 
> > |
> > | 
> > 
> > 合計
> > 
> > |
> > | --- |
> > 
> > \> \> ### ご請求内訳\> \> \> \> \> \> \> {% for discount in discounts %}\> \> \> \> \> {% endfor %}\> \> \> \> \> {% if shipping\_address %}\> \> \> \> \> {% endif %}\> \> \> \> \> {% if total\_paid != total\_price %}\> \> \> \> \> \> \> \> \> {% endif %}\> 
> > 
> > | 商品合計: | {{ subtotal\_price | money }} |  
> > | - | - |  
> > | 割引 “{{ discount.code }}” | {{ discount.savings | money }} |  
> > | (内消費税): | {{ tax\_price | money }} |  
> > | 送料 (税込): | {{ shipping\_price | money }} |  
> > | **総合計 (税込):** | **{{ total\_price | money }}** |  
> > | **Total paid:** | **{{ total\_paid | money }}** |  
> > | **Outstanding Amount:** | **{{ total\_price | minus: total\_paid | money }}** |
> > 
> > > > {% if billing\_address %}\> ### ご請求先\> \> \> 〒{{ billing\_address.zip | upcase }}  
> > > > {{ billing\_address.province | replace: ‘Aichi’, ‘愛知県’ | replace: ‘Akita’, ‘秋田 県’ | replace: ‘Aomori’, ‘青森県’ | replace: ‘Chiba’, ‘千葉県’ | replace: ‘Ehime’, ‘愛 媛県’ | replace: ‘Fukui’, ‘福井県’ | replace: ‘Fukuoka’, ‘福岡県’ | replace: ‘Fukushima’, ‘福島県’ | replace: ‘Gifu’, ‘岐阜県’ | replace: ‘Gunma’, ‘群馬県’ | replace: ‘Hiroshima’, ‘広島県’ | replace: ‘Hokkaidō’, ‘北海道’ | replace: ‘Hyōgo’, ‘兵庫県’ | replace: ‘Ibaraki’, ‘茨城県’ | replace: ‘Ishikawa’, ‘石川県’ | replace: ‘Iwate’, ‘岩手県’ | replace: ‘Kagawa’, ‘香川県’ | replace: ‘Yamanashi’, ‘山梨県’ | replace: ‘Yamaguchi’, ‘山口県’ | replace: ‘Kōchi’, ‘高知県’ | replace: ‘Kumamoto’, ‘熊本県’ | replace: ‘Kyōto’, ‘京都府’ | replace: ‘Mie’, ‘三重県’ | replace: ‘Yamagata’, ‘山形県’ | replace: ‘Miyazaki’, ‘宮崎県’ | replace: ‘Nagano’, ‘長野県’ | replace: ‘Nagasaki’, ‘長崎県’ | replace: ‘Nara’, ‘奈良県’ | replace: ‘Niigata’, ‘新潟県’ | replace: ‘Ōita’, ‘大分県’ | replace: ‘Okayama’, ‘岡山県’ | replace: ‘Okinawa’, ‘沖縄県’ | replace: ‘Ōsaka’, ‘大阪府’ | replace: ‘Saga’, ‘佐賀 県’ | replace: ‘Saitama’, ‘埼玉県’ | replace: ‘Shiga’, ‘滋賀県’ | replace: ‘Shimane’, ‘島根県’ | replace: ‘Shizuoka’, ‘静岡県’ | replace: ‘Tochigi’, ‘栃木県’ | replace: ‘Tokushima’, ‘徳島県’ | replace: ‘Tottori’, ‘鳥取県’ | replace: ‘Toyama’, ‘富山県’ | replace: ‘Tōkyō’, ‘東京都’ | replace: ‘Miyagi’, ‘宮城県’ | replace: ‘Wakayama’, ‘和 歌山県’ | replace: ‘Kanagawa’, ‘神奈川県’ | replace: ‘Kagoshima’, ‘鹿児島県’ }}\> {{ billing\_address.city }}\> {{ billing\_address.address1 }}\> {{ billing\_address.address2 }}  
> > > > {% if billing\_address.company %}\> {{ billing\_address.company }}  
> > > > {% endif %}\> {{ billing\_address.last\_name }} {{ billing\_address.first\_name }} 様  
> > > > Phone: {{ billing\_address.phone}}  
> > > > {% endif %}\>
> > 
> > * * *
> > 
> > > > {% if note %}\> ### ノート\>
> > 
> > {{ note }}
> > 
> > > {% endif %}\> \> {% if shipping\_address %}\> ### お届け先\> \> \> 〒{{ shipping\_address.zip | upcase }}  
> > > {{ shipping\_address.province | replace: ‘Aichi’, ‘愛知県’ | replace: ‘Akita’, ‘秋田 県’ | replace: ‘Aomori’, ‘青森県’ | replace: ‘Chiba’, ‘千葉県’ | replace: ‘Ehime’, ‘愛 媛県’ | replace: ‘Fukui’, ‘福井県’ | replace: ‘Fukuoka’, ‘福岡県’ | replace: ‘Fukushima’, ‘福島県’ | replace: ‘Gifu’, ‘岐阜県’ | replace: ‘Gunma’, ‘群馬県’ | replace: ‘Hiroshima’, ‘広島県’ | replace: ‘Hokkaidō’, ‘北海道’ | replace: ‘Hyōgo’, ‘兵庫県’ | replace: ‘Ibaraki’, ‘茨城県’ | replace: ‘Ishikawa’, ‘石川県’ | replace: ‘Iwate’, ‘岩手県’ | replace: ‘Kagawa’, ‘香川県’ | replace: ‘Yamanashi’, ‘山梨県’ | replace: ‘Yamaguchi’, ‘山口県’ | replace: ‘Kōchi’, ‘高知県’ | replace: ‘Kumamoto’, ‘熊本県’ | replace: ‘Kyōto’, ‘京都府’ | replace: ‘Mie’, ‘三重県’ | replace: ‘Yamagata’, ‘山形県’ | replace: ‘Miyazaki’, ‘宮崎県’ | replace: ‘Nagano’, ‘長野県’ | replace: ‘Nagasaki’, ‘長崎県’ | replace: ‘Nara’, ‘奈良県’ | replace: ‘Niigata’, ‘新潟県’ | replace: ‘Ōita’, ‘大分県’ | replace: ‘Okayama’, ‘岡山県’ | replace: ‘Okinawa’, ‘沖縄県’ | replace: ‘Ōsaka’, ‘大阪府’ | replace: ‘Saga’, ‘佐賀 県’ | replace: ‘Saitama’, ‘埼玉県’ | replace: ‘Shiga’, ‘滋賀県’ | replace: ‘Shimane’, ‘島根県’ | replace: ‘Shizuoka’, ‘静岡県’ | replace: ‘Tochigi’, ‘栃木県’ | replace: ‘Tokushima’, ‘徳島県’ | replace: ‘Tottori’, ‘鳥取県’ | replace: ‘Toyama’, ‘富山県’ | replace: ‘Tōkyō’, ‘東京都’ | replace: ‘Miyagi’, ‘宮城県’ | replace: ‘Wakayama’, ‘和 歌山県’ | replace: ‘Kanagawa’, ‘神奈川県’ | replace: ‘Kagoshima’, ‘鹿児島県’ }}\> {{ shipping\_address.city }}\> {{ shipping\_address.address1 }}\> {{ shipping\_address.address2 }}  
> > > {% if shipping\_address.company %}\> {{ shipping\_address.company }}  
> > > {% endif %}\> {{ shipping\_address.last\_name }} {{ shipping\_address.first\_name }} 様  
> > > Phone: {{ shipping\_address.phone}}
> > > 
> > > > {% endif %}\>
> > 
> > ご不明な点がございましたら、{{ shop.email }}までご連絡ください。
