{% if customer %} {% set orders = customer.orders %}
{{ "No orders exist for this user yet."|t('commerce') }}
{{ 'Order'|t('commerce') }} | {{ 'Order Date'|t('commerce') }} | {{ 'Total Paid'|t('commerce') }} | {{ 'Status'|t('commerce') }} |
---|---|---|---|
{{ order.link|raw }} | {% if order.isCompleted %}{{ order.dateOrdered|date('D dS M Y') }}{% endif %} | {{ order.totalPaid|currency(order.currency) }} | {{ order.orderStatus.labelHtml|raw }} |
{{ "No addresses exist for this user yet."|t('commerce') }}
{{ "No subscriptions exist for this user yet."|t('commerce') }}
{{ 'Subscription'|t('commerce') }} | {{ 'Subscription date'|t('commerce') }} | {{ 'Cancellation date'|t('commerce') }} | {{ 'Expiration date'|t('commerce') }} | {{ 'Is subscription active?'|t('commerce') }} |
---|---|---|---|---|
{{ subscription }} | {{ subscription.dateCreated|date('D dS M Y') }} | {{ subscription.dateCanceled ? subscription.dateCanceled|date('D dS M Y') : '' }} | {{ subscription.dateExpired ? subscription.dateExpired|date('D dS M Y') : '' }} | {{ subscription.status == 'active' ? 'Yes'|t('commerce') : 'No'|t('commerce') }} |