I want to output a list of all orders of all customers, including customers first name and last name. But can't get these two elements.
What I have now is:
{% set pastOrders = craft.commerce.orders.find() %}
{% for order in pastOrders %}
{% for item in order.lineItems %}
<tr>
<td>{{ order.id }}</td>
<td>{{ craft.commerce.customer.firstName }}</td>
<td>{{ craft.commerce.customer.lastName }}</td>
<td>{{ item.description }}</td>
<td>{{ order.email }}</td>
<td>{{ item.options.evenement }}</td>
<td>{{ item.note }}</td>
<td>{{order.orderStatus.name}}</td>
<td>{{ order.datePaid.localeDate() }}</td>
</tr>
{% endfor %}
{% endfor %}
But as you may guess, I've got an error in both fields firstName lastName