X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add Dr. title to contact us tpl in 3.5 ? (https://forum.x-cart.com/showthread.php?t=12661)

K.C. 03-07-2005 06:48 PM

Add Dr. title to contact us tpl in 3.5 ?
 
I found the contactus.tpl but I don't understand how to add Dr. to the list of titles available.

It appears that this is the section of the code.

<tr valign=middle>
<td class=FormButton>{$lng.lbl_title}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<select name=title>
{section name=title loop=$name_titles}
<option {if $userinfo.title eq $name_titles[title]}selected{/if}>{$name_titles[title]}</option>
{/section}
</select>
</td>
</tr>

cotc2001 03-07-2005 10:49 PM

have a shufty in config.php

K.C. 03-08-2005 05:53 PM

Quote:

Originally Posted by cotc2001
have a shufty in config.php


I have absolutely no idea what that means.

x-online 03-08-2005 06:28 PM

on the root folder, find config.php
open it... and find

Code:

#
# Defined Titles
#
$name_titles = array("Mr.","Mrs.","Ms.");
$smarty->assign("name_titles",$name_titles);


change from:
Code:

$name_titles = array("Mr.","Mrs.","Ms.");
to
Code:

$name_titles = array("Mr.","Mrs.","Ms.","Dr.");

Done

K.C. 03-08-2005 06:36 PM

Thank you very much!!

D.Thornley@salford.ac.uk 04-24-2005 02:27 PM

Thanks again .... this applies in version 4.0.12 also ...


All times are GMT -8. The time now is 03:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.