Shopifyアプリ「Order Printer」で発行日を取引日に変更する

Shopify

Shopifyアプリ「Order Printer」で発行日を取引日に変更するには、テンプレートの該当箇所を以下のとおり修正します。

{% for transaction in transactions limit:1  %}
{{ transaction.created_at | date: "%m/%d/%y" }}
{% endfor %}

transaction.created_at で、取引発生日を取得できます。
date: "%m/%d/%y" を変更することで日付のフォーマットを設定します。

以上です。

スポンサーリンク