Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Custom text next/under form field on registration page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-14-2008, 01:35 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Question Custom text next/under form field on registration page?

I added extra text field "Date of birth" at the end of personal information block.

Then I went to /main/register_personal_info.tpl and added

*****

<table border="0" cellpadding="0" cellspacing="0" width="643">
<tr>
<td>&nbsp;<font face="Arial" size="2" color="#FF0000">(Example 05/25/1975 . Must be 18 or older to order!)</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

*****

The idea was to get it show "(Example 05/25/1975 . Must be 18 or older to order!)" under DoB field. However after i put that code it messed up the whole design. I know I doing it wrong, maybe anyone can inlight me, please? And is there a way to add such message on the right side next to field instead under?

I would appretiate any suggestions! Thanks in advance!
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #2  
Old 12-14-2008, 08:17 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: Custom text next/under form field on registration page?

Try this in /main/register_personal_info.tpl

<tr>
<td align="right">field name text(label)</td>
<td>&nbsp;</td>
<td nowrap="nowrap">
<input type="text" name="dob" id="dob" value=""><font face="Arial" size="2" color="#FF0000">(Example 05/25/1975 . Must be 18 or older to order!)</font>
</td>
</tr>

Quote:
Originally Posted by acidon
I added extra text field "Date of birth" at the end of personal information block.

Then I went to /main/register_personal_info.tpl and added

*****

<table border="0" cellpadding="0" cellspacing="0" width="643">
<tr>
<td>&nbsp;<font face="Arial" size="2" color="#FF0000">(Example 05/25/1975 . Must be 18 or older to order!)</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

*****

The idea was to get it show "(Example 05/25/1975 . Must be 18 or older to order!)" under DoB field. However after i put that code it messed up the whole design. I know I doing it wrong, maybe anyone can inlight me, please? And is there a way to add such message on the right side next to field instead under?

I would appretiate any suggestions! Thanks in advance!
Reply With Quote
  #3  
Old 12-14-2008, 01:04 PM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Custom text next/under form field on registration page?

Thanks for such fast reply!

Ok, I removed {include file="main/register_additional_info.tpl" section="P"} from /main/register_personal_info.tpl and added

<table border="0" cellpadding="0" cellspacing="0" width="643">
<tr>
<td align="right">field name text(label)</td>
<td> </td>
<td nowrap="nowrap">
<input type="text" name="dob" id="dob" value=""><font face="Arial" size="2" color="#FF0000">(Example 05/25/1975 . Must be 18 or older to order!)</font>
</td>
</tr>
</table>



at the very end of template, as a result - I get the field, get the note I wanted accross from it, but layout still messed up. It appears, personal information block looks fine, but everything else around gets gray background instead of default wite, and all other blocks (addresss, passwords, etc) moved to the right?

Is there certain place in template where I need to insert the code?
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #4  
Old 12-15-2008, 09:08 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: Custom text next/under form field on registration page?

Hi,
Do you know one thing that you can add additional field to registration page in admin side itself.


have you tried that.
admin->->general setting->User Profiles options


Quote:
Originally Posted by acidon
Thanks for such fast reply!

Ok, I removed {include file="main/register_additional_info.tpl" section="P"} from /main/register_personal_info.tpl and added

<table border="0" cellpadding="0" cellspacing="0" width="643">
<tr>
<td align="right">field name text(label)</td>
<td> </td>
<td nowrap="nowrap">
<input type="text" name="dob" id="dob" value=""><font face="Arial" size="2" color="#FF0000">(Example 05/25/1975 . Must be 18 or older to order!)</font>
</td>
</tr>
</table>



at the very end of template, as a result - I get the field, get the note I wanted accross from it, but layout still messed up. It appears, personal information block looks fine, but everything else around gets gray background instead of default wite, and all other blocks (addresss, passwords, etc) moved to the right?

Is there certain place in template where I need to insert the code?
Reply With Quote
  #5  
Old 12-15-2008, 12:05 PM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Custom text next/under form field on registration page?

Yeah It comes as additional_info.tpl or smn, but all I need is to show users the example of how to enter DOB into one text box.

Just Came to mind, is there a way to add 3 drop down boxes under the same DOB value? that whould solve the problem imo
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:59 AM.

   

 
X-Cart forums © 2001-2020