The EU VAT Assistant doesn’t include an option to always show the VAT number. A key purpose of that field is to apply a VAT exemption when a valid EU VAT number is entered, and that requires a validation. Since the EU VAT Assistant can only validate EU numbers, by design it hides the VAT number field for non-EU countries.
If you need to allow extra-EU customers to enter their VAT ID, you have two options:
- Add a custom field to the checkout page, specifically for the VAT ID (see the official WooCommerce documentation: https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/). You could call the field “Tax Identification Number”, to distinguish it from the EU VAT Number. This would be the easiest solution, and it would be independent from the EU VAT Assistant.
- You could implement a custom validator for the Macao Tax Numbers and register it with the EU VAT Assistant via the filter
wc_aelia_register_euva_validators
. This would be more complex, because you would need to learn how the EU VAT Assistant works internally, how to implement a VAT number validator that implements the Aelia\WC\EU_VAT_Assistant\Validation\IVAT_Number_Validator
interface. We don’t have an official developer documentation about this, yet, because it’s a pretty new architecture that we implemented recently.
Both of the above solutions would allow your customers from Macao to enter their tax number, so that you can use it to process their orders.
-
This reply was modified 3 years, 4 months ago by
Diego. Reason: Formatting