{% extends "commerce/_layouts/cp" %} {% do view.registerTranslations('commerce', []) %} {% set crumbs = [ { label: 'Customers'|t('commerce'), url: url('commerce/customers') }, ] %} {% if customerId is defined and customerId %} {% set crumbs = crumbs|merge([{ label: 'Customer #{id}'|t('commerce', { id: customerId }), url: cpUrl('commerce/customers/' ~ customerId) }]) %} {% endif %} {% set selectedSubnavItem = 'customers' %} {% set fullPageForm = true %} {% import "_includes/forms" as forms %} {% block content %} {% if customer and address.id and (customer.primaryBillingAddressId == address.id or customer.primaryShippingAddressId == address.id) %}
{% if customer.primaryBillingAddressId == address.id and customer.primaryShippingAddressId == address.id %} {{ 'This is the primary billing and shipping address for: {email}'|t('commerce', { email: customer.email }) }} {% elseif customer.primaryBillingAddressId == address.id %} {{ 'This is the primary billing address for: {email}'|t('commerce', { email: customer.email }) }} {% elseif customer.primaryShippingAddressId == address.id %} {{ 'This is the primary shipping address for: {email}'|t('commerce', { email: customer.email }) }} {% endif %}