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

Remove some of the required fields on the Contact Us page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-21-2005, 04:25 PM
 
onewomanproduction@gmail. onewomanproduction@gmail. is offline
 

Newbie
  
Join Date: Nov 2004
Posts: 3
 

Default Remove some of the required fields on the Contact Us page

I'm trying to remove some of the required fields in the Contact Us page. When I comment them out it doesn't work, when I remove them it doesn't work. Just doesn't process. Had no problem removing the non-required fields. Thanks!
__________________
X-Cart 3.5
Reply With Quote
  #2  
Old 02-21-2005, 04:40 PM
  shan's Avatar 
shan shan is offline
 

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

Default

also see help.php
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 02-23-2005, 06:34 AM
 
onewomanproduction@gmail. onewomanproduction@gmail. is offline
 

Newbie
  
Join Date: Nov 2004
Posts: 3
 

Default help.php

Not seeing much in there, am I missing something?
__________________
X-Cart 3.5
Reply With Quote
  #4  
Old 02-23-2005, 10:30 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

try setting them to hidden fields and give it a value.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #5  
Old 02-23-2005, 12:00 PM
 
uwphototech uwphototech is offline
 

Newbie
  
Join Date: May 2004
Location: Derry, NH USA
Posts: 3
 

Default

To remove fields from the Contact Us form edit the contactus.tpl file which is located in the /skin1/help directory.

If the removed fields were required or to make an existing field non-required edit the help.php file in the /include directory. For example to make the Last Name field non-required you need to remove:

|| empty($contact["lastname"])

from the $fillerror = statement

Regards,

Dave
__________________
X-Cart version 3.5.9
PHP 4.3.8
MySQL server 3.23.58
Operating system Linux
Reply With Quote
  #6  
Old 02-23-2005, 12:03 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Now that is something nice to see....a first time poster with an answer instead of a question! Welcome Dave!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 02-23-2005, 12:20 PM
 
uwphototech uwphototech is offline
 

Newbie
  
Join Date: May 2004
Location: Derry, NH USA
Posts: 3
 

Default

Thanks for the "Welcome". I've never posted a question because I've always managed to find the answers via the dreaded search function.

I was trying to set a few fields as non-required just like the original poster above. Shan's reply pointed me in the right direction but was not clear as to which of the many help.php files needed to be edited.

So as this forum has helped me on numerous occasions I was glad to finally offer some assistance.
__________________
X-Cart version 3.5.9
PHP 4.3.8
MySQL server 3.23.58
Operating system Linux
Reply With Quote
  #8  
Old 02-24-2005, 06:20 AM
 
onewomanproduction@gmail. onewomanproduction@gmail. is offline
 

Newbie
  
Join Date: Nov 2004
Posts: 3
 

Default Removing Required Fields

Thanks so much Uwphototech! That worked like a charm! It was exactly what I needed.
Reply With Quote
  #9  
Old 02-24-2005, 09:30 AM
 
uwphototech uwphototech is offline
 

Newbie
  
Join Date: May 2004
Location: Derry, NH USA
Posts: 3
 

Default

My pleasure onewomanproduction, glad I could help.
__________________
X-Cart version 3.5.9
PHP 4.3.8
MySQL server 3.23.58
Operating system Linux
Reply With Quote
  #10  
Old 02-28-2005, 09:19 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default

Isn't it easier to go to > General settings> Contact us form options>
And unchecking fields you dont require?

For instance my contact us for just has Name/E-mail Message Just basics!
Department you can edit through > Lanquages just search label > Department, then edit that if you want to change name.

Then to edit which department do a search text label or text> for each predone department, then edit to your choosen department
Alan
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
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 02:20 PM.

   

 
X-Cart forums © 2001-2020