question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validation of fields 'company name' and 'tax' in checkout doesn't work correctly

See original GitHub issue

Current behavior

Filling the form after marking checkbox “I want to generate an invoice for the company” always results in the validation message “Field is required”: -> each time for field “company name” -> and when trying to fill in the “tax” field - if it was left empty before. As a result, you can’t go to “Review Order”.

companyname_tax_validation

Expected behavior

Validation of fields “company name” and “tax” is working correctly: -> if correct data were provided there is no validation message shown, -> if field was left empty or wrong data were provided - validation message is shown.

Steps to reproduce the issue

  1. Go to https://test.storefrontcloud.io
  2. Add any product to the cart
  3. Go to checkout
  4. Provide personal deatils
  5. Continue to shipping and provide shipping details
  6. Continue to payment
  7. Provide address data
  8. Mark checkbox “I want to generate an invoice for the company”
  9. Fill in the form by providing correct company name and tax number
  10. Unmark checkbox and mark it again
  11. Click on company name field, leave it empty and then click on tax number field and also leave it empty
  12. Fill in the form by providing correct company name and tax number

Can you handle fixing this bug by yourself?

  • NO

Which Release Cycle state this refers to? Info for developer.

Pick one option.

  • This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from develop branch and create Pull Request 2. Feature / Improvement back to develop.
  • This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
  • This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Environment details

  • Browser: Chrome 73
  • OS: Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
pkarwcommented, May 8, 2019

OK cool. Please make sure the checkboxes in the My Account (all sections) work properly as well. I’m affraid there was a change regarding BaseCheckbox.vue that involves thsese kind of issues

1reaction
pkarwcommented, May 7, 2019

@dimasch Please test it out on 1.10 (develop branch) - it supposedly occurs only there

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validation of fields 'company name' and 'tax' in checkout ...
Validation of fields "company name" and "tax" is working correctly: -> if correct data were provided there is no validation message shown,
Read more >
The pitfalls of Woocommerce Checkout and how to fix them
Simplifying Checkout Forms to Avoid an Overwhelming appearance. Use a Single 'Full Name' Field Hide 'Company Name' behind a link
Read more >
Collect Customer Tax IDs with Checkout | Stripe Documentation
Displaying a customer's tax ID and legal business name on invoices is a common requirement that you can satisfy by enabling tax ID...
Read more >
Enabling TAX/VAT number collection in checkout by adding ...
Existing workaround: Apps that enable you to add tax number in the cart. This is not a proper solution, customers go directly into...
Read more >
Checkout Errors - BigCommerce Support
If you've found nothing wrong with your tax settings, the issue may be with the products in the order. Products can be assigned...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found