Post by edze » Thu Mar 03, 2016 8:26 am

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

Newbie

Posts

Joined
Thu May 09, 2013 6:36 pm


Post by madimar » Thu Mar 03, 2016 2:36 pm

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

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm


Post by magikcommerce » Thu Mar 03, 2016 3:33 pm

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>

Browse large collection of Premium OpenCart Themes


User avatar
New member

Posts

Joined
Mon Feb 09, 2015 5:55 pm
Location - San Jose, CA

Post by magikcommerce » Thu Mar 03, 2016 3:45 pm

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()

Browse large collection of Premium OpenCart Themes


User avatar
New member

Posts

Joined
Mon Feb 09, 2015 5:55 pm
Location - San Jose, CA
Who is online

Users browsing this forum: No registered users and 18 guests