order priterに商品の画像と、バリーエーションの項目名を表示させたいと思っているのですが、うまくいきません。
商品画像の部分は現在は下記のように記載しています。
{% for line_item in line_items %}
<tr>
<td>{{ line_item.image }}</td>
<td><b>{{ line_item.product_title }}</b></td>
{{ line_item.image }}で表示されるかと思いましたが、商品画像のURLが表示されている感じになります。
次に、バリエーションの部分は次のように記載しています。
{% if line_item.variant.option1 %}
・{{ line_item.variant.option1 }}<br>
{% endif %}
{% if line_item.variant.option2 %}
・{{ line_item.variant.option2 }}<br>
{% endif %}
{% if line_item.variant.option3 %}
・{{ line_item.variant.option3 }}<br>
{% endif %}
{% if line_item.properties %}{% for propertie in line_item.properties %}
・{{ propertie[1] }}<br>
{% endfor %}
{% endif %}
これだと、選択した内容しか表示されないので、なんの選択肢か分かるようにしたいです。
(例)カラーを選んでください:赤色 といった感じ。
{{ product.options }}もしくは{{ variant.title }}を記載すればいいかと思いましたが、上手くいきませんでした。
また、もしオーダーのタグを記載する方法もあれば知りたいです。
お分かりになりましたら、ご指示をお願いいたします。