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.
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.
In Version 1.5.6.x, the phone number section looks like this:
so, it would have to be changed to look like something like this:
Untested, just as general information. And for OC v.2.x., it probably LOOKS different, as well.
Good Luck
Ernie
bigmax.ch
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>
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>
Code: Select all
<tr>
<td colspan="2" style="display: none;"><input type="hidden" name="telephone" value="000-000-0000"></td>
</tr>
Good Luck
Ernie
bigmax.ch
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 31 guests