hpe Από Pakistan Μέλος από Νοε 2024 hpe 13 Νοε 2024 17:26 Hi there. I have gone through the discussions in forum but could not succeed. if have understood that the create account form, and the checkout new user register forms are different, these are not inherited from a common form. I wish to remove the following fields from both forms: Company name Tax Id Last Name Address 2 Post Code Zone/State/Province I noticed that last name is mandatory, and just removing it without modifying some other code could cause trouble.4 Guidance needed. Thanks !!!
dodo Moderator Από Lithuania Μέλος από Μαρ 2016 dodo 13 Νοε 2024 17:41 You need to edit these two files: https://github.com/litecart/litecart/blob/2.6.0/public_html/includes/templates/default.catalog/pages/create_account.inc.php#L44 https://github.com/litecart/litecart/blob/2.6.0/public_html/includes/templates/default.catalog/views/box_checkout_customer.inc.php#L41 <div class="form-group col-xs-6"> <label><?php echo language::translate('title_lastname', 'Last Name'); ?></label> <?php echo functions::form_draw_text_field('lastname', true, 'required'); ?> </div> Try removing 'required' attribute. For others remove html code completely.
tim Founder Από Sweden Μέλος από Μαΐ 2013 tim 13 Νοε 2024 22:58 You must also remove the server side validation. https://github.com/litecart/litecart/blob/2.6.0/public_html/pages/create_account.inc.php#L45 https://github.com/litecart/litecart/blob/2.6.0/public_html/includes/entities/ent_order.inc.php#L571
hpe Από Pakistan Μέλος από Νοε 2024 hpe 15 Νοε 2024 14:29 issue solved ! it worked. thanks to both of your for guiding. litecart is fun, consumes minimal space and does the job 👍