I would like to update the “order history” table on the account page to include a header for products and pull in the product title for each of the orders.
I managed to get “Product” to pull in as a header but I can’t figure out how to make the product titles to pull in for each order.
Thanks for any help with trying to pull in these product titles.
Here is the section of code I’ve been working on to try and get it to pull in:
{% if customer.orders.size != 0 %}
{% for order in customer.orders %}
{% endfor %}| {{ 'customer.orders.order_number' | t }} | {{ 'customer.order.product' | t }} | {{ 'customer.orders.date' | t }} | {{ 'customer.orders.fulfillment_status' | t }} | {{ 'customer.orders.total' | t }} | |
|---|---|---|---|---|---|
| {{ order.name | link_to: order.customer_url }} | {{ product.title }} | {{ order.created_at | date: format: "month_day_year" }} | {{ order.financial_status_label }} | {{ order.fulfillment_status_label }} | {% render 'price-element', price: order.total_price %} {{ order.currency }} |
