gmo_bank_account_content (shared_partial)
GMO 口座直結決済の銀行口座の中身を表示する shared_partial です。
銀行ロゴ、銀行名、預金種別、口座番号を出します。
gmo_bank_account を参照します。
一覧のように受注ごとに口座が異なる画面では、include 時に order.payment.gmo_bank_account を渡します。
テーマ管理のファイルパス
ec_force/shop/shared/_gmo_bank_account_content.html.liquid
ベーシックテーマの関連ファイルパス
include の書き方
画面に渡されている gmo_bank_account を使う場合です。
{% include 'ec_force/shop/shared/gmo_bank_account_content.html' %}受注ごとの口座を渡す場合です。
{% include 'ec_force/shop/shared/gmo_bank_account_content.html', gmo_bank_account: order.payment.gmo_bank_account %}必要なコンポーネント
{% if gmo_bank_account != blank %}
{% if gmo_bank_account.logo_url != blank %}
<img src="{{ gmo_bank_account.logo_url }}" alt="{{ gmo_bank_account.bank_name }}">
{% endif %}
{{ gmo_bank_account.bank_name }}
{% if gmo_bank_account.display_account_type != blank %}
{{ gmo_bank_account.display_account_type }}
{% endif %}
{% if gmo_bank_account.account_number != blank %}
({{ gmo_bank_account.account_number }})
{% endif %}
{% endif %}参照できる項目は次のとおりです。