Liquid、JavaScriptなどに関する質問
自動コレクションの値引きを登録したのですが、Order Printerに値引き額が反映されません。
以下のコーディングが入っておりますが、discount が効いていないためfor文に入らず、
また、discount.savingsにも値引き額が入ってないように思われます。
{% for discount in discounts %}
<tr style="padding: 1em 0.5em; text-align: center; height: 2.5em;">
<th style="text-align: center;" colspan="3">値引き</th>
<th style="text-align: center;">{{ discount.savings | money }}</th>
</tr>
{% endfor %}
そちらのコードは自動ディスカウントではなくて、個別発行用のクーポンのディスカウントです。テーマ内のLiquidだと以下のような変数で参照できそうですが、残念ながらこのアプリで使える変数には入ってないようです。
https://shopify.dev/api/liquid/objects/discount-application
以下の帳票アプリを試してみるのはいかがですか?
https://apps.shopify.com/documents-development?locale=ja