Forums / Templates, Stylesheets, Page Layout / Remove Date of Birth Format check

Remove Date of Birth Format check

Locked

Views: 1,856

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Jun 2008, 2:16 AM
#1
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Remove Date of Birth Format check

Hi everyone,

I'm trying to use the 'date of birth' customer signup field for a resellers license ID. And I'd like to remove the format check. Does anyone have any thoughts on where I should start?

Thanks in advance.

<fieldset>

<legend><?php echo TABLE_HEADING_WHOLESALE_INFO; ?></legend>

<span class="wholesaleInfo"><?php echo WHOLESALE_INFO1;?></span><br class="clearBoth" />
<label class="inputLabel" for="dob"><?php echo ENTRY_DATE_OF_BIRTH; ?></label>
<?php echo zen_draw_input_field('dob','', 'id="dob"') . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="alert">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?><br />
<div id="mydiv" style="display:none; overflow:hidden; height:125px;"><span><?php echo WHOLESALE_INFO2;?></span></div>
<br class="clearBoth" />
</fieldset>
<?php
  }
?>
  • pensive612
10 Jun 2008, 10:11 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,733
Plugin Contributions:
56

Re: Remove Date of Birth Format check

Instead, modify your database to add this field. Overloading DOB to have different semantics is sure to cause you grief at upgrade time if it's displayed/manipulated/used in a different way in the next release.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

10 Jun 2008, 5:41 PM
#3
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Re: Remove Date of Birth Format check

Thanks for the response swguy. A little confusing. Two other posts telling people to do it like that instead..

Man, I wish there was actual functionality to add extra fields to signup for catalog and admin.

I will try and find a new way.

Thanks again...

  • pensive612