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)
-   -   how to remove 'required' fields in the contact form? (https://forum.x-cart.com/showthread.php?t=2058)

guytje 03-27-2003 10:43 PM

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

B00MER 03-31-2003 12:38 PM

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

;)

guytje 04-02-2003 04:45 AM

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

shan 04-02-2003 07:21 AM

post the code and ill fix it

GlennM 05-07-2003 12:21 AM

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.

Tye 05-23-2003 09:25 AM

I have been trying to do this all day!!!
 
It works now though.

Cheers! 8)


All times are GMT -8. The time now is 02:25 AM.

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