Okay
  Public Ticket #3962543
Missing VAT ID field in checkout and email since version 5.3.08
Closed

Comments

  • Patryk started the conversation

    Hi,

    I've today noticed a critical issue with the VAT ID field (in my case, labeled "NIP") in the checkout process and order confirmation emails.

    • In version 5.3.02, everything worked fine – the VAT ID field was visible at checkout and included in the order emails.

    • After updating to version 5.3.08, the VAT ID field disappeared from the checkout and is no longer included in the email.

    • I’ve updated the plugin to the latest version, 5.3.10, but the issue persists.

    • I tested this thoroughly in a staging environment:

      • With version 5.3.02 active – the VAT ID field is present.

      • Switching to version 5.3.08 – the field disappears.

      • Switching back to 5.3.02 – the field returns.

    All settings related to registration and billing fields are correctly configured. This issue is clearly related to changes introduced in the plugin starting from version 5.3.08.


    Unfortunately, I can't revert to the older version on the production site because the newer versions support minimum order quantities per product variation, while version 5.3.02 only supports it per product – and I absolutely need the variation-level functionality.


    Please investigate and fix this as soon as possible – the missing field makes it very difficult to issue proper invoices and manage B2B orders.

    Thank you!

    Attached files:  SCR-20250424-npnq.png
      SCR-20250424-npgm.png

  •   WebWizards replied privately
  •   Patryk replied privately
  •  2,406
    WebWizards replied

    Hi Patryk,

    Thank you for the access details. I've found the issue and implemented a fix!

    I've added a code snippet that solves that here: https://plasmet.nospace.pl/wp-admin/admin.php?page=edit-snippet&id=22

    Please keep this snippet active on your site - it should ensure the VAT ID field continues working properly with all future updates of the plugin.

     

    Let me know if you need any adjustments or run into any other issues.

    Kind regards,

    Stefan

  • Patryk replied

    Hi, I’ve added your code to the production version. The VAT ID field does indeed show up in the checkout now, but for some reason, it appears four times — seemingly as many times as I have languages set up — even though the labels are correctly translated to "VAT ID" and when I switch languages, it still shows "VAT ID" four times.

    Additionally, I noticed that on the test site you installed version 5.3.25, whereas I have version 5.3.10 as the latest available for download.

    Can you tell me why this field is now showing up four times?

    Attached files:  SCR-20250429-syqj.png

  •  2,406
    WebWizards replied

    Hi Patryk,

     

    For all the translated versions of each B2BKing field, please make sure the "Enabled" checkbox is turned off.

    This is actually an important detail when using B2BKing with WPML - the translated fields should always be kept disabled. This way, the translation works correctly but the fields don't show up multiple times on your forms.

    You can find more detailed information about this in our documentation here:
    https://woocommerce-b2b-plugin.com/docs/translate-b2bking-with-wpml/#2-toc-title

     

    Please try that to see if it can fix it.

     

    Regarding version 5.3.25 on the test site, that's just something I tested initially by installing a development version (not yet available officially) but I don't believe it's related to the issue in any way.

     

    Kind regards,

    Stefan