Okay
  Public Ticket #2774748
VAT field reorder
Closed

Comments

  •  2
    George started the conversation

    Hello, I'd like to move the VAT field direclty below the company name, how should I go about doing it?

  •  1,910
    WebWizards replied

    Hi George,

    In the registration page, this can be done by changing 'sort order' for each field. But I believe you mean moving the VAT field in the Checkout page.

    In the checkout page, the plugin cannot directly reorder these, as 'Company Name' is a default WooCommerce checkout field.


    However, you could do it by adding this JavaScript snippet to the site:

    jQuery(document).ready(function(){
        jQuery('.b2bking_vat_field_container').detach().insertBefore('#billing_country_field'); 
    });
    

    To add a JS snippet: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/

    Will look like this:

    7628351737.png


    Kind regards,

    Stefan

  •  2
    George replied

    Hello, I did that and it didn't work.

  •   WebWizards replied privately
  •  2
    George replied

    Hello. I have provided a temp login on the other ticket, it's still not reordered

  •  1,910
    WebWizards replied

    Hi,

    You're right, I didn't realize we had the login already.

    I modified the snippet a bit and it seems to be working now:

    6950235419.png


    Kind regards,

    Stefan

  •  2
    George replied

    Thank you!

  •  2
    George replied

    Hello, I seem to have the same problem after the latest update

  •  1,910
    WebWizards replied

    Hi there,

    I understand this is about moving the VAT number field below the company name, on the checkout page?


    I opened the site now and went to checkout, but the VAT field does seem to be placed below the company as expected:

    6222160285.png


    If you're still seeing this issue, can you please clarify what the issue is and what steps you are taking to see it?


    Kind regards,

    Stefan

  •  2
    George replied

    Hello again, it doesn't show up on the email like it used to.

    Attached files:  -Keriland-Νέα-παραγγελία-10778-kerilandgr-gmail-com-Gmail.png

  •  1,910
    WebWizards replied

    Thank you for clarifying,


    I looked into that now and I ran some preliminary tests on your site. I am not able to quickly identify the issue, I believe it must be some kind of conflict with another plugin or piece of code, perhaps something that has been added recently to the site.

    I tested this on our local test site and I am not able to reproduce the problem, we can see the VAT below the billing area as expected:

    9167651131.png



    If you would like, our team can troubleshoot this in detail on your site to identify what the issue is. For that, we would need you to please renew your support period via the following link: https://kingsplugins.com/extend-support-period/?code=52d03ebb-bf5a-4682-ab9b-1524eaab6b72 , as the support period has expired on November 9, 2021,


    Looking forward to assisting you on this,

    Kind regards,

    Stefan