custom/plugins/AcrisTaxCS/src/Resources/views/storefront/component/address/address-personal.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/address/address-personal.html.twig' %}
  2. {% block component_address_personal_account_type_select %}
  3.     {% if (data and data.has('billingAddress') and data.get('billingAddress').has('company')) or formViolations.inputData.company %}
  4.         {% set accountType = constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS') %}
  5.     {% endif %}
  6.     {% if formViolations.inputData.company is not empty and data.get('company') is empty %}
  7.         {% do data.setCompany(formViolations.inputData.company) %}
  8.     {% endif %}
  9.     {% if formViolations.inputData.vatIds is not empty and data.get('vatIds') is empty %}
  10.         {% do data.setVatIds(formViolations.inputData.vatIds) %}
  11.     {% endif %}
  12.     {% if formViolations.inputData.customfields.acris_address_vat_id is not empty and data.customfields.acris_address_vat_id is empty %}
  13.         {% set customFields = data.customfields %}
  14.         {% if data.customfields is empty %}
  15.             {% set customFields = [] %}
  16.         {% endif %}
  17.         {% set customFields = customFields|merge({acris_address_vat_id: formViolations.inputData.customfields.acris_address_vat_id}) %}
  18.         {% do data.setCustomFields(customFields) %}
  19.     {% endif %}
  20.     {{ parent() }}
  21. {% endblock %}