0

I have a situation where a shop can only sell to B2B customers. The boss suggests that the simplest way to force this validation is using the VAT ID - if a customer doesn't enter a VAT ID, then the checkout cannot continue.

Does anyone know how to best implement this? I don't find a specific extension for that yet.

1 Answer 1

0

You can make the "company" field required as described here:

https://stackoverflow.com/questions/5456794/magento-make-the-field-company-required

Not sure about the exact steps for default vat field number, seems thy are same as for the company field.

If you are looking for the extension, try "customer attributes" module, where you can create any fields, like VAT and make them mandatory from the admin panel, no need to change database or templates.

3
  • OK thanks. What about the VAT ID field - making both a validation check that the number is correct, and making this an essential field. Is that going to be easy to do? I'm happy to buy an extension if needed.
    – egg
    Commented Aug 10, 2014 at 9:02
  • this also looks to be a part solution: forum.azmagento.com/how-to/…
    – egg
    Commented Aug 10, 2014 at 12:42
  • just need to add validation to that.
    – egg
    Commented Aug 10, 2014 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.