hpe Fra Pakistan Medlem siden nov. 2024 hpe nov. 13 2024 05:26 p.m. 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 Fra Lithuania Medlem siden mar. 2016 dodo nov. 13 2024 05:41 p.m. 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 Fra Sweden Medlem siden mai 2013 tim nov. 13 2024 10:58 p.m. 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 Fra Pakistan Medlem siden nov. 2024 hpe nov. 15 2024 02:29 p.m. issue solved ! it worked. thanks to both of your for guiding. litecart is fun, consumes minimal space and does the job 👍