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)
-   -   Remove some of the required fields on the Contact Us page (https://forum.x-cart.com/showthread.php?t=12323)

onewomanproduction@gmail. 02-21-2005 04:25 PM

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!

shan 02-21-2005 04:40 PM

also see help.php

onewomanproduction@gmail. 02-23-2005 06:34 AM

help.php
 
Not seeing much in there, am I missing something?

cotc2001 02-23-2005 10:30 AM

try setting them to hidden fields and give it a value.

uwphototech 02-23-2005 12:00 PM

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

balinor 02-23-2005 12:03 PM

Now that is something nice to see....a first time poster with an answer instead of a question! :) Welcome Dave!

uwphototech 02-23-2005 12:20 PM

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.

onewomanproduction@gmail. 02-24-2005 06:20 AM

Removing Required Fields
 
Thanks so much Uwphototech! That worked like a charm! It was exactly what I needed.

uwphototech 02-24-2005 09:30 AM

My pleasure onewomanproduction, glad I could help.

gizmo 02-28-2005 09:19 AM

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


All times are GMT -8. The time now is 07:32 AM.

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