Page 1 of 1

How to hide/delete some lines in registration?

Posted: Thu Mar 03, 2016 8:26 am
by edze
Hi,

Is it possible to ask less questions on the Registration page?
For example, we don't need the client to give their Fax number, Company name and Province/Region.

Please see http://www.houwensvlaai-nederland.nl

Kind regards,
Edze

Posted: Thu Mar 03, 2016 2:36 pm
by madimar
hi, it is not possible via admin, you need to tweak the code. Regarding fax and company you can easily do, commenting some lines in some tpl files. On the other side, things are more complicated for province/zone field, because it is a mandatory field to determine customer geo zone, needed for shipping, payment, etc.
Let's say in this case you should be able to hide the field (via css/style), leaving the default value (and ignoring it in admin interface)
I hope i have you some first inputs / ideas,
Regards,
M


Inviato dal mio Find 5 utilizzando Tapatalk

Re: How to hide/delete some lines in registration?

Posted: Thu Mar 03, 2016 3:33 pm
by magikcommerce
Go to catalog/view/theme/yourthemefolder/account/register.tpl

1. To hide fax

Find

Code: Select all

 
<div class="form-group">
<label class="col-sm-2 control-label" for="input-fax"><?php echo $entry_fax; ?></label>
<div class="col-sm-10">
 <input type="text" name="fax" value="<?php echo $fax; ?>" placeholder="<?php echo $entry_fax; ?>" id="input-fax" class="form-control" />
</div>
</div>
Replace

Code: Select all

<div class="form-group" style="display:none">
<label class="col-sm-2 control-label" for="input-fax"><?php echo $entry_fax; ?></label>
<div class="col-sm-10">
 <input type="text" name="fax" value="<?php echo $fax; ?>" placeholder="<?php echo $entry_fax; ?>" id="input-fax" class="form-control" />
</div>
</div>
2. To hide Company

Find code

Code: Select all

 <div class="form-group">
           <label class="col-sm-2 control-label" for="input-company"><?php echo $entry_company; ?></label>
           <div class="col-sm-10">
             <input type="text" name="company" value="<?php echo $company; ?>" placeholder="<?php echo $entry_company; ?>" id="input-company" class="form-control" />
           </div>
         </div>
Replace code

Code: Select all

<div class="form-group" style="display:none">
           <label class="col-sm-2 control-label" for="input-company"><?php echo $entry_company; ?></label>
           <div class="col-sm-10">
             <input type="text" name="company" value="<?php echo $company; ?>" placeholder="<?php echo $entry_company; ?>" id="input-company" class="form-control" />
           </div>
         </div>

Re: How to hide/delete some lines in registration?

Posted: Thu Mar 03, 2016 3:45 pm
by magikcommerce
To hide Region
Add style="display:none" to Region div similar to Fax & Company
Now go to catalog/controller/account/register.php
comment code related to zone id from index() & add below code

Code: Select all

$data['zone_id'] = '0';
Comment code related to zone_id from validate()