How to force company name and tax ID

Developer
Od Poland
Člen od mar 2023

Hi.
how to force company name, TAX ID and validation ?
Regards

Developer
Od Poland
Člen od mar 2023

Thank you for your answer.
I mean this form...

tim
Founder
Od Sweden
Člen od máj 2013
tim

The HTML elements:
https://github.com/litecart/litecart/blob/2.5.4/public_html/includes/templates/default.catalog/views/box_checkout_customer.inc.php
<?php echo functions::form_draw_text_field('company', true, 'required'); // See how I added required ?>

The validation logic:
https://github.com/litecart/litecart/blob/2.5.4/public_html/includes/entities/ent_order.inc.php#L562


        throw new Exception(language::translate('error_missing_company', 'You must enter a company name.'));
      }```
Developer
Od Poland
Člen od mar 2023

Thank you very much!

vy
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.