cancel
Showing results for 
Search instead for 
Did you mean: 

VAT/tax not correct when creating account after checkout

VAT/tax not correct when creating account after checkout

Hello,

 

Our client wishes only to sent to clients with a (valid) VAT.

I set this option to required for customer registration.

And I set the vat required for shipping fields. 

But the problem is, when i place an order with the vat_id filled in and the order is placed successfully, I cannot create an account.

I get the message "Tax/VAT number is not valid"

 

I've set the tax for shipping required in the xml. I cannot find ho to do this for billing.

<body>
        <referenceBlock name="checkout.root">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="checkout" xsi:type="array">
                            <item name="children" xsi:type="array">
                                <item name="steps" xsi:type="array">
                                    <item name="children" xsi:type="array">
                                        <item name="shipping-step" xsi:type="array">
                                            <item name="children" xsi:type="array">
                                                <item name="shippingAddress" xsi:type="array">
                                                    <item name="children" xsi:type="array">
                                                        <!-- The name of the form the field belongs to -->
                                                        <item name="shipping-address-fieldset" xsi:type="array">
                                                            <item name="children" xsi:type="array">
                                                                <!--<item name="country_id" xsi:type="array">-->
                                                                    <!--<item name="config" xsi:type="array">-->
                                                                        <!--<item name="tooltip" xsi:type="array">-->
                                                                            <!--<item name="description" xsi:type="string"-->
                                                                                  <!--translate="true">Isn't your country on the list? Please contact us.-->
                                                                            <!--</item>-->
                                                                        <!--</item>-->
                                                                    <!--</item>-->
                                                                <!--</item>-->
                                                                <item name="vat_id" xsi:type="array">
                                                                    <item name="validation" xsi:type="array">
                                                                        <item name="required-entry" xsi:type="boolean">true</item>
                                                                    </item>
                                                                </item>
                                                            </item>
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>

Could you help me with this?

 

Kind Regards,

Martijn

 

 

 

Tags (3)