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)
-   -   Contact us subject field not required, hidden (https://forum.x-cart.com/showthread.php?t=29993)

plezaic 03-26-2007 06:46 AM

Contact us subject field not required, hidden
 
How can I make subject field hidden on contact us form and just assign it a value instead of having users type it in?

Thanks,
Predrag

lachild 03-26-2007 02:49 PM

Re: Contact us subject field not required, hidden
 
Sure you can... In 4.0.x here's what you need to do.

Locate the following in /skiln1/help/contactus.tpl and remove:

Code:

<tr valign="middle">
<td class="FormButton">{$lng.lbl_subject}</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap">
<input type="text" id="subject" name="subject" size="32" maxlength="128" value="{$userinfo.subject}" />
{if $fillerror ne "" and $userinfo.subject eq ""}<font class="Star">&lt;&lt;</font>{/if}
</td>
</tr>


Then add somewhere in the form:

Code:

<input type="hidden" name="subject" value="Your Subject Goes Here">

Hope this helps.

plezaic 03-27-2007 05:57 AM

Re: Contact us subject field not required, hidden
 
Yes, that's it. Thank you so much.

Predrag


All times are GMT -8. The time now is 11:56 PM.

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