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

how to remove 'required' fields in the contact form?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-27-2003, 10:43 PM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default how to remove 'required' fields in the contact form?

I've tried and tried, but I think i'm missing something.
Tips would be welcome!
Thanks,
Guy
Reply With Quote
  #2  
Old 03-31-2003, 12:38 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

include/help.php:

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"]));

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 04-02-2003, 04:45 AM
 
guytje guytje is offline
 

Advanced Member
  
Join Date: Nov 2002
Posts: 50
 

Default Ok! That works cool... but now...

Now there seems to be another thing:

I left 3 fields mandatory, but now, when i only fill in 2 of the 3, I get the form with red

<<

on the right hand side of all the boxes... and I only want them next to the boxes that I've made mandatory.

Can you help further?
Thanks,
Guy
Reply With Quote
  #4  
Old 04-02-2003, 07:21 AM
  shan's Avatar 
shan shan is offline
 

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

Default

post the code and ill fix it
__________________
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 05-07-2003, 12:21 AM
 
GlennM GlennM is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 198
 

Default

I've got V3.3.5 and removing those fields didn't seem to do anything, Boomer..?

I'd like to have the Contact form not so strict too: just first name, last name, email, subject, body.
Reply With Quote
  #6  
Old 05-23-2003, 09:25 AM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default I have been trying to do this all day!!!

It works now though.

Cheers!
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
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 11:19 AM.

   

 
X-Cart forums © 2001-2020