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)
-   -   Required Fields in Contact Us Form (https://forum.x-cart.com/showthread.php?t=10011)

delerium 10-25-2004 01:58 PM

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.

greenpac 10-26-2004 04:41 AM

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.

delerium 10-26-2004 04:47 AM

We're using 3.5.6 - there isn't a 'Contact Us Form Options' under 'General Settings'

shan 10-26-2004 04:58 AM

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

delerium 10-26-2004 08:43 AM

Thanks Shan - that did the trick! :)


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

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