How to force company name and tax ID

Developer
Fra Poland
Medlem siden

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

Developer
Fra Poland
Medlem siden

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

tim
Founder
Fra Sweden
Medlem siden
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
Fra Poland
Medlem siden

Thank you very much!

Du
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.