• Resolved HungryJos

    (@hungryjos)


    Hello, for a webshop that sells mostly in France, we need to validate the VAT number to remove VAT when EU VAT is valid.
    Unfortunately some French customers enter their SIRET number and not the EU VAT number (that can be derived from that number; see https://www.ebsoft.org/mambo/ressources/clefs.htm)
    Would it be possible to incorporate this to automatically validate if the SIRET number is also a valid EU VAT?

Viewing 1 replies (of 1 total)
  • Plugin Author Diego

    (@daigo75)

    I’m not aware of plans to support SIRET numbers in the EU VAT Assistant, as it’s specifically designed to handle and store VAT numbers. I will add this to the suggestion list.

    In the meantime, you could handle that in a couple of ways:
    1. Add a SIRET field to your checkout page. When customers enter it, convert it to a VAT number and populate the corresponding field. This could be the easiest solution, as it would allow you to collect both the SIRET and the VAT number, without affecting any of the existing plugin’s logic.
    2. Intercept the VAT number field before the EU VAT Assistant. If it’s a SIRET number, replace it with the corresponding VAT number before the validation. This would be a bit trickier, because the VAT number validation can happen in a couple of places, and the number is not passed through a common, “centralised” filter.
    3. Implement a custom validator for the EU VAT Assistant, specifically for France, to handle SIRET numbers (see filter wc_aelia_register_euva_validators). Of course, this would take more effort, therefore I wouldn’t recommend it as the first choice. I added it to the list for completeness.

    I hope this helps. Of course, if you have any questions, please feel free to ask. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Validation of french SIRET number to EU VAT’ is closed to new replies.