| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Remove some of the required fields on the Contact Us page | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||||
|
|||||||||
also see help.php
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
help.php
Not seeing much in there, am I missing something?
__________________
X-Cart 3.5 |
|||||||
#4
|
|||||||
|
|||||||
try setting them to hidden fields and give it a value.
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#5
|
|||||||
|
|||||||
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 |
|||||||
#6
|
|||||||
|
|||||||
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 |
|||||||
#7
|
|||||||
|
|||||||
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 |
|||||||
#8
|
|||||||
|
|||||||
Removing Required Fields
Thanks so much Uwphototech! That worked like a charm! It was exactly what I needed.
|
|||||||
#9
|
|||||||
|
|||||||
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 |
|||||||
#10
|
|||||||||
|
|||||||||
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 - |
|||||||||
|
|||
X-Cart forums © 2001-2020
|