17
/May
Get Order details any page
{% for order in customer.orders %}
<tr>
<td>{{ order.name | link_to: order.customer_url }}</td>
<td>{{ order.created_at | date: format: 'short' }}</td>
<td>{{ order.financial_status_label }}</td>
<td>{{ order.fulfillment_status_label }}</td>
<td>{{ order.total_price | money }}</td>
</tr>
{% for line_item in order.line_items %}
<tr>
<td>{{ line_item.title | link_to: line_item.product.url }}</td>
<td>{{ line_item.sku }}</td>
<td>{{ line_item.price | money }}</td>
<td>{{ line_item.quantity }}</td>
<td>{{ line_item.quantity | times: line_item.price | money }}</td>
</tr>
{% endfor %}
{% endfor %}
<tr>
<td>{{ order.name | link_to: order.customer_url }}</td>
<td>{{ order.created_at | date: format: 'short' }}</td>
<td>{{ order.financial_status_label }}</td>
<td>{{ order.fulfillment_status_label }}</td>
<td>{{ order.total_price | money }}</td>
</tr>
{% for line_item in order.line_items %}
<tr>
<td>{{ line_item.title | link_to: line_item.product.url }}</td>
<td>{{ line_item.sku }}</td>
<td>{{ line_item.price | money }}</td>
<td>{{ line_item.quantity }}</td>
<td>{{ line_item.quantity | times: line_item.price | money }}</td>
</tr>
{% endfor %}
{% endfor %}
Post a Comment!