Editing the fields visibility in create_account and checkout

hpe
Van Pakistan
Lid sedert Nov. 2024
hpe

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 !!!

Moderator
Van Lithuania
Lid sedert Mrt. 2016

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.

hpe
Van Pakistan
Lid sedert Nov. 2024
hpe

THANK YOU VERY MUCH
THANKS

hpe
Van Pakistan
Lid sedert Nov. 2024
hpe

issue solved !

it worked. thanks to both of your for guiding.

litecart is fun, consumes minimal space and does the job 👍

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