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

Contact Us Required fields

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-29-2003, 06:27 AM
 
nuevojefe nuevojefe is offline
 

Member
  
Join Date: Jul 2003
Location: U.S.
Posts: 24
 

Default 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
Reply With Quote
  #2  
Old 08-29-2003, 06:54 AM
 
rodneyw rodneyw is offline
 

Senior Member
  
Join Date: Mar 2003
Posts: 162
 

Default

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
Reply With Quote
  #3  
Old 08-29-2003, 06:56 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

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


OOPS... rodneyw was faster than me!!!
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:39 AM.

   

 
X-Cart forums © 2001-2020