vendor/shopware/storefront/Resources/views/storefront/component/address/address.html.twig line 1

Open in your IDE?
  1. {% block component_address %}
  2.     <div class="address">
  3.         {% if feature('FEATURE_NEXT_15707') and showShippingWarning and not address.country.shippingAvailable %}
  4.             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  5.                 type: "warning",
  6.                 content: "address.countryNoShippingAlert"|trans|sw_sanitize
  7.             } %}
  8.         {% endif %}
  9.         {% if address.company or address.vatId %}
  10.             {% block component_address_company %}
  11.                 <p>
  12.                 {% if address.company %}
  13.                     {% block component_address_company_name %}
  14.                         {{ address.company }}{% if address.department %} - {{ address.department }}{% endif %}
  15.                     {% endblock %}
  16.                     <br/>
  17.                 {% endif %}
  18.                 </p>
  19.             {% endblock %}
  20.         {% endif %}
  21.         <p>
  22.             {% if address.salutation and address.salutation.salutationKey != 'not_specified' %}
  23.                 {% block component_address_salutation %}
  24.                     {{ address.salutation.translated.displayName }}
  25.                 {% endblock %}
  26.             {% endif %}
  27.             {% if address.title %}
  28.                 {% block component_address_title %}
  29.                     {{ address.title }}<br/>
  30.                 {% endblock %}
  31.             {% endif %}
  32.             {% block component_address_name %}
  33.                 {{ address.firstName }} {{ address.lastName }}<br/>
  34.             {% endblock %}
  35.             {% block component_address_street %}
  36.                 {{ address.street }}<br/>
  37.             {% endblock %}
  38.             {% if address.additionalAddressLine1 %}
  39.                 {% block component_address_additional_address_line_1 %}
  40.                     {{ address.additionalAddressLine1 }}<br/>
  41.                 {% endblock %}
  42.             {% endif %}
  43.             {% if address.additionalAddressLine2 %}
  44.                 {% block component_address_additional_address_line_2 %}
  45.                     {{ address.additionalAddressLine2 }}<br/>
  46.                 {% endblock %}
  47.             {% endif %}
  48.             {% if address.phoneNumber %}
  49.                 {% block component_address_phone_number %}
  50.                     {{ address.phoneNumber }}<br/>
  51.                 {% endblock %}
  52.             {% endif %}
  53.             {% block component_address_zipcode_city %}
  54.                 {% if config('core.address.showZipcodeInFrontOfCity') %}
  55.                     {{ address.zipcode }} {{ address.city }}<br/>
  56.                 {% else %}
  57.                     {{ address.city }} {{ address.zipcode }}<br/>
  58.                 {% endif %}
  59.             {% endblock %}
  60.             {% if address.countryState %}
  61.                 {% block component_address_state %}
  62.                     {{ address.countryState.translated.name }}<br/>
  63.                 {% endblock %}
  64.             {% endif %}
  65.             {% block component_address_country %}
  66.                 {{ address.country.translated.name }}
  67.             {% endblock %}
  68.         </p>
  69.     </div>
  70. {% endblock %}