Public Ticket #2774748

VAT field reorder

Closed
Comments
4 Tickets 2
George started the conversation 5 years ago on May 12, 2021 at 9:15am

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

2,762
KingsPlugins replied 5 years ago on May 15, 2021 at 1:16pm

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://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Will look like this:

7628351737.png

Kind regards,

Stefan

2,762
KingsPlugins replied 5 years ago on June 1, 2021 at 9:38pm

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

1
2,762
KingsPlugins replied 3 years ago on January 13, 2024 at 5:08pm

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,762
KingsPlugins replied 3 years ago on January 17, 2024 at 5:07pm

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

Sign In