custom/plugins/SteincoTheme/src/Resources/views/storefront/component/address/address-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/address/address-form.html.twig' %}
  2. {# force company name #}
  3. {% set accountTypeRequired = true %}
  4. {% set accounTypeRequired = true %} {# Typo in Shopware 6.4 #}
  5. {% set showFormCompany = true %}
  6. {# restrict company name to 40 chars #}
  7. {% block component_address_form_company_name_input %}
  8.     <input type="text"
  9.             class="form-control{% if violationPath %} is-invalid{% endif %}"
  10.             id="{{ prefix }}company"
  11.             placeholder="{{ "address.companyNamePlaceholder"|trans|striptags }}"
  12.             name="{{ prefix }}[company]"
  13.             value="{{ data.get('company') }}"
  14.             maxlength="40"
  15.             {% if prefix != "shippingAddress" and accountTypeRequired %}required="required"{% endif %}>
  16. {% endblock %}