{% if customer %} {% set orders = customer.orders %} {% if orders|length %} {% for order in orders %} {% endfor %}
{{ 'Order'|t }} {{ 'Order Date'|t }} {{ 'Total Paid'|t }} {{ 'Status'|t }}
{{ order.link }} {% if order.isCompleted %}{{ order.dateOrdered|date('D dS M Y') }}{% endif %} {{ order.totalPaid|currency(order.currency) }} {{ order.orderStatus.htmlLabel|raw }}
{% endif %} {% set addresses = customer.addresses %}
{% if addresses|length %}
{% for address in addresses %} {% endfor %}
{% endif %} {% endif %} {% includeCssResource 'commerce/commerce.css' %} {% includeJsResource 'commerce/js/CommerceAddressBox.js' %} {% includeJsResource 'commerce/js/CommerceEditAddressModal.js' %} {% includecss %} .address-heading-label { margin-bottom:4px; } {% endincludecss %} {% includejs %} window.countries = JSON.parse('{{ craft.commerce.countries|json_encode|raw }}'); window.states = JSON.parse('{{ craft.commerce.states|json_encode|raw }}'); $(".address-box").each(function(){ new Craft.Commerce.AddressBox($(this),{}); }); {% endincludejs %}