Thank you for purchasing our plugin and I'm glad you like it,
I just checked the detailed response from the Europa.eu API to see if the Consultation Number is in the complete response. I'm afraid it isn't:
I looked into it quite a bit and I looked over the API but I can't see any way to get the consultation nr. I'm afraid
The request date is there yes. If you want I can think of a way to store the date somewhere, it will require some custom coding though, it's not possible directly through plugin settings.
Have you supplied a requester VAT number? This is required to get the consultation number. If only the customer VAT is supplied, indeed there is no consultation number.
The EU VAT Assitant plugin stores the consultation number with every order. I think that is over the top.
I looked again over what I sent you, and I can see now the code did not copy correctly, a lot of things were replaced with comments. Ticksy has occasional quirks unfortunately.
I think it might be the same problem for the missing label, it could be a comment.
Great plugin! Good documentation.
Question. Upon customer registration with a valid EU tax number, can the VIES Consultation number be stored in the "user registration data"?
Also the request date would be nice but not essential.
I haven't seen any method of doing this?
Cheers,
Mark
Hi Mark,
Thank you for purchasing our plugin and I'm glad you like it,
I just checked the detailed response from the Europa.eu API to see if the Consultation Number is in the complete response. I'm afraid it isn't:
I looked into it quite a bit and I looked over the API but I can't see any way to get the consultation nr. I'm afraid
The request date is there yes. If you want I can think of a way to store the date somewhere, it will require some custom coding though, it's not possible directly through plugin settings.
Kind Regards,
Stefan
Hi Stefan,
Thanks for looking into this.
Have you supplied a requester VAT number? This is required to get the consultation number. If only the customer VAT is supplied, indeed there is no consultation number.
The EU VAT Assitant plugin stores the consultation number with every order. I think that is over the top.
Cheers,
Mark
Hi,
You're right actually, that worked!
To add this to the plugin's main release, there are various issues for us, a need for extra settings and many code changes.
But I have packaged it as code that you can add to functions.php of your site.
CODE:
EFFECTS:
You will get this in the user's profile page:
In the code you should REPLACE
with your own VAT Number !!!
Hey Stefan! Wow amazing, thanks!
I tested it and it works perfectly. I had to do 2 adjustments after copying it to my functions.php file:
Line 34 was:
Now is: (removed -- between ? and > )
And line 48 was:
is now for me:
I am missing a label. I think that is because it is new and not in some translation file. Will sort that out later.
Thanks again for your fast responses and great solution!
Glad that mostly worked
I looked again over what I sent you, and I can see now the code did not copy correctly, a lot of things were replaced with comments. Ticksy has occasional quirks unfortunately.
I think it might be the same problem for the missing label, it could be a comment.