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

Required Fields in Contact Us Form

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-25-2004, 01:58 PM
 
delerium delerium is offline
 

Member
  
Join Date: May 2004
Location: Toronto, ON, Canada
Posts: 13
 

Default Required Fields in Contact Us Form

We are modifying the Contact Us form and have changed the contactus.tpl file, but where do we change whether a field is required or not? Even if we take a required field out of the .tpl file, the form still won't send.
__________________
X-Cart 4.4.1
Reply With Quote
  #2  
Old 10-26-2004, 04:41 AM
 
greenpac greenpac is offline
 

Member
  
Join Date: Oct 2004
Posts: 17
 

Default

Admin Area > General Settings > Contact Us Form Options :: at least for 4.0.4 that is where it's located. I can't imagine that it wasn't part of the Admin Area before though.
__________________
X-Cart Gold
4.0.4 [Linux]
Reply With Quote
  #3  
Old 10-26-2004, 04:47 AM
 
delerium delerium is offline
 

Member
  
Join Date: May 2004
Location: Toronto, ON, Canada
Posts: 13
 

Default

We're using 3.5.6 - there isn't a 'Contact Us Form Options' under 'General Settings'
__________________
X-Cart 4.4.1
Reply With Quote
  #4  
Old 10-26-2004, 04:58 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you need to edit include/help.php too

remove the fields you dont want to check for


Code:
$fillerror = (empty($contact["firstname"]) || empty($contact["lastname"]) || empty($contact["b_address"]) || empty($contact["b_city"]) || empty($contact["b_country"]) || empty($contact["b_zipcode"]) || empty($contact["phone"]) || empty($contact["email"]) || empty($contact["subject"]) || empty($contact["body"]));
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 10-26-2004, 08:43 AM
 
delerium delerium is offline
 

Member
  
Join Date: May 2004
Location: Toronto, ON, Canada
Posts: 13
 

Default

Thanks Shan - that did the trick!
__________________
X-Cart 4.4.1
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 12:23 PM.

   

 
X-Cart forums © 2001-2020