STEP 2-2
メールテンプレート参照変数
メールテンプレートには変数が用意されています。変数を使うことで、それぞれのメールテンプレートに対応した内容のメールを生成できます。
すべての変数はどの通知テンプレートでも使用できますが、通知の送信時点でデータがまだ利用できない場合、一部の変数は適用できないことがあります。
※配列の中では正しく利用できない変数もあります。配列の中で変数を扱う場合は、配列の変数の「中で使える変数」に記載された変数を参照してください。
変数
| プロパティ | 説明 | 例 |
|---|---|---|
Recustomer CSS | Recustomer が定義した CSS 削除は非推奨です(削除するとメールのレイアウトが崩れます) | |
mail_title | メールの件名が入ります | 配送中です |
customer_full_name | 購入者の姓名を表示します | 佐藤 太郎 |
brand_name | カスタマイズ画面のブランド名を参照し表示します | テストブランドストア |
brand_logo | カスタマイズ画面のブランドロゴを参照し表示します | https://test-store.com |
tracking_number | 配送追跡番号を表示します | |
delivery_company | 配送会社を表示します | 佐川急便 |
product_image | 商品画像を表示します | https://test-image.png |
product_name | 商品名を表示します | テスト商品 |
product_quantity | 商品数量を表示します | 3 |
currency_symbol | 購入時の通貨記号を表示します | $、¥、€ |
product_price | 商品金額を表示します | 10,000 |
formatted_price | 通貨記号を含むフォーマット済みの商品金額を表示します | $10.00、¥1,000 |
variant_name | 商品に紐付いているバリエーション名を表示します | サイズ |
variant_value | 商品に紐付いているバリエーションの値を表示します | M サイズ |
redelivery_url | 再配達依頼ページの URL を表示します | |
shipping_full_name | 配送先住所に登録されている氏名を表示します | 佐藤 太郎 |
配列の変数
商品のように複数件になりうる情報は、配送ステータスごとの配列で渡されます。配列の中で使える変数は、配列ごとに決まっています。
| プロパティ | 説明 | 中で使える変数 |
|---|---|---|
info_received_line_items[] | 荷物受付された商品の情報が包含された配列です | product_imageproduct_nameproduct_quantityproduct_pricevariant_options[] |
in_transit_line_items[] | 配送中の商品の情報が包含された配列です | product_imageproduct_nameproduct_quantityproduct_pricevariant_options[] |
available_for_pickup_line_items[] | 受け取り可能の商品の情報が包含された配列です | product_imageproduct_nameproduct_quantityproduct_pricevariant_options[] |
delivered_line_items[] | お届け完了の商品の情報が包含された配列です | product_imageproduct_nameproduct_quantityproduct_pricevariant_options[] |
attempt_fail_line_items[] | ご不在のため持ち戻りの商品の情報が包含された配列です | product_imageproduct_nameproduct_quantityproduct_pricevariant_options[] |
attempt_fail_remind_line_items[] | 持ち戻りリマインドの商品の情報が包含された配列です | product_imageproduct_nameproduct_quantityproduct_pricevariant_options[] |
expired_line_items[] | 保管期限の超過の商品の情報が包含された配列です | product_imageproduct_nameproduct_quantityproduct_pricevariant_options[] |
variant_options[] | 商品に紐付いているバリエーションの内容が包含されている配列です | variant_namevariant_value |
© Recustomer, Inc.