Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing date formet on Create_Account.php


LewisM

Recommended Posts

Posted

I'll keep it short and sweet :)

 

Customers are trying to create an account, they fill in all the required details, hit submit and the page just refreshes.

It turns out it's the Date of Birth causing the problem; if you don't put an American style date in (e.g. 02/20/10) it doesn't work!

 

Is there any way I can change this to the English style date (e.g. 20/02/10)?

(Also I'd like to put a warning next to the input box. There's a little block of text next to it that says "(eg. 05/21/1970)", where would I go to edit this text?

 

Thanks!

Posted

do you actually need to have this info?

Unless it is essential to your business then you might want to remove it, this ind of info ask is highly intrusive and will put a lot of people off if not necessary.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Yes it is needed, very important actually.

No need for details I don't think, but no, it's not an 'adult entertainment' store ;)

 

Anyway, any ideas on how to fix this? :)

Posted

Had definitely been working too hard when I looked at the code last night, simple fix.

 

Around line 330 of Create_Account.php is this code:

                    <tr>
                     <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
                     <td class="main"><?php echo tep_draw_input_field('dob', '' , 'class="text-filed-ca"') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?>
                     </td>
                   </tr>

 

Just add in something alone the lines of:

                    <tr>
                     <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
                     <td class="main"><?php echo tep_draw_input_field('dob', '' , 'class="text-filed-ca"') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?><br>
                     <div style="font-size:9px;">Please note: date MUST be inserted using the American 'MM/DD/YYY' format.</div></td>
                   </tr>

 

Nice and simple work around :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...