{% sw_extends "@Storefront/storefront/component/account/register.html.twig" %}
{% block component_account_register %}
{{ parent() }}
{% block snippets_for_js_validation %}
{% set validationSnippets = {
generalValidation: "wexoCheckout.checkout.validation.general"|trans,
addressValidation: "wexoCheckout.checkout.validation.address"|trans,
emailValidation: "wexoCheckout.checkout.validation.email"|trans,
phoneValidation: "wexoCheckout.checkout.validation.phone"|trans
} %}
<input type="hidden" id="validationErrorMessageSnippets" value="{{ validationSnippets|json_encode }}">
{% endblock %}
{% endblock %}
{% block component_account_register_privacy %}
{# Nope #}
{% endblock %}
{% block component_account_register_address_shipping_fields_company %}
{# Temporary fix, as it doesnt work in shopware 6.4. Issue created https://issues.shopware.com/issues/NEXT-16071 #}
{# Only change is i have add accountType to data passed #}
{% sw_include '@Storefront/storefront/component/address/address-personal-company.html.twig' with {
'prefix': 'shippingAddress',
'customToggleTarget': true,
'address': data.get('shippingAddress'),
'accountType': data.get('accountType')
} %}
{% endblock %}