• Resolved biiissen

    (@biiissen)


    Hi there,

    I’d like to use your plugin, which by the way works nicely. Thanks for that.

    I just have one minor issue. The border color of the input field during checkout is green by default, instead of grey. As if the VAT ID was already validated, but there is no value in the field.

    The surrounding <p> tag has the class “woocommerce-validated”. So I tried to remove it after the page has loaded with this code:

      $(document).ready(function(){
        $(window).on('load', function(){
          if ($(".form-row .form-row-wide .validate-eu-vat-number").hasClass("woocommerce-validated")) {
            $(this).removeClass("woocommerce-validated");
        }
      });

    But that doesn’t seem to work, because it is reset immediately.

    What am I doing wrong?

    Thanks in advance for your help!

    Kind regards,
    Laurent

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @biiissen,

    Thanks for reaching out.

    I have escalated this with our development team. They will back to you as soon as possible.

    Kind regards.

    Thread Starter biiissen

    (@biiissen)

    Hi @moshtafizur01,

    thanks for letting me know and keeping me updated!
    If you need additional information, feel free to ask.

    Kind regards,
    Laurent

    • This reply was modified 8 months ago by biiissen.
    Plugin Contributor Kousik Mukherjee

    (@kousikmukherjeeli)

    Hello @biiissen,

    we have fixed this issue, please update the store with v2.10.2

    Regards
    Kousik Mukherjee

    Thread Starter biiissen

    (@biiissen)

    Hi @kousikmukherjeeli,

    thanks a lot for your quick action!

    I can confirm that it works nicely in my shop.
    The color is neutral when empty, red when wrong an green when validated. Perfect!

    Kind regards,
    Laurent

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Empty Tax ID input field green border’ is closed to new replies.