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 Required fields (https://forum.x-cart.com/showthread.php?t=4179)

nuevojefe 08-29-2003 06:27 AM

Contact Us Required fields
 
How do I remove required fields from the contact page, and how do I remove the * that indicates to the user that the fields are required?

Thanks

rodneyw 08-29-2003 06:54 AM

This should be it...

FILE:: Skin1/help/contactus.tpl

Looks for these types of code
Code:

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


to remove the required check and the star it should look like this
Code:

<tr valign=middle>
<td class=FormButton>{$lng.lbl_first_name}</td>
<td></td>
<td nowrap>
<input type=text name=firstname size=32 maxlength=32 value="{$userinfo.firstname}">
</td>
</tr>



FILE:: include/help.php file

you will need to edit the following line
Code:

    $fillerror = (empty($contact["firstname"]) || empty($contact["lastname"]) || empty($contact["email"]) || empty($contact["subject"]) || empty($contact["body"]));

Remove any that you do not want to require. Mine has already been modified so it may not look exactly like yours

DogByteMan 08-29-2003 06:56 AM

I believe that you would modify Edit Templates - Help - contactus.tpl


OOPS... rodneyw was faster than me!!!


All times are GMT -8. The time now is 08:30 AM.

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