Post by Greg Houston » Thu Apr 23, 2015 9:32 am

Is it possible to remove the "Telephone", "Fax", and address fields from the user account registration form? My products are downloads and thus this information is unnecessary to me and thus unnecessary steps for my customers.

User avatar
New member

Posts

Joined
Fri Oct 31, 2014 4:40 am


Post by IP_CAM » Sat Apr 25, 2015 12:20 am

You could 'HIDE' the Sections from beeing viewed. It much more easy, than trying to 'remove' some possibly OC REQUIRED Fields. But then, in order to make it work, you would have to add FIXED values, accepted by OC as section matching value, and it would work.

In my VERSION 1.5.6.x, I use it this way, to hide Country and State, and ADD a fixed Value, matching the Country, plus a 'virtual' State, calles 'All', to make it work.

Code: Select all

 <tr>
 <td style="display: none;">State</td>
 <td style="display: none;"><input type="hidden" name="zone_id" value="3095">All</td>  
</tr>
<tr>
 <td style="display: none;">Country</span></td>
 <td style="display: none;"><input type="hidden" name="country_id" value="204">Schweiz</td>
 </tr> 
In Version 1.5.6.x, the phone number section looks like this:

Code: Select all

<tr>
          <td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
          <td><input type="text" size="24" name="telephone" value="<?php echo $telephone; ?>" />
            <?php if ($error_telephone) { ?>
            <span class="error"><?php echo $error_telephone; ?></span>
            <?php } ?></td>
        </tr>
so, it would have to be changed to look like something like this:

Code: Select all

<tr>
<td colspan="2" style="display: none;"><input type="hidden" name="telephone" value="000-000-0000"></td>
</tr> 
Untested, just as general information. And for OC v.2.x., it probably LOOKS different, as well.
Good Luck
Ernie
bigmax.ch

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in Action here: http://www.jti.li/shop/
---
940+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Greg Houston » Sat Apr 25, 2015 4:47 am

Thank you, IP_CAM.

User avatar
New member

Posts

Joined
Fri Oct 31, 2014 4:40 am

Who is online

Users browsing this forum: No registered users and 53 guests