How to add the product name in the order history table in My Account page? I was able to add the title Product row in the table but not able to add the code to get the relevant product name in the order history table.
{% for order in customer.orders %}
{% endfor %}
<table>
<tr>
<th>
{{ 'customer.orders.order_number' | t }}
</th>
<th>
{{ 'customer.order.product' | t }}
</th>
<th>
{{ 'customer.orders.date' | t }}
</th>
<th>
{{ 'customer.orders.payment_status' | t }}
</th>
<th>
{{ 'customer.orders.total' | t }}
</th>
</tr>
<tr>
<td>
{{ order.name | link_to: order.customer_url }}
</td>
<td>
{{ order.created_at | date: format: 'date' }}
</td>
<td>
{{ order.financial_status_label }}
</td>
<td>
{{ order.total_price | money }}
</td>
</tr>
</table>
Shopify allows to add product name in the order history table. On the left panel in your Shopify admin, click on Sales Reports. Select a product and click the edit pencil icon. Now on the right panel, you will find two options: Order Statistic and Order Detail. Click on the Order Detail and fill up the order name field. Save changes to add product name in your order history table.