![]() |
How to Delete Fields in Contactus.tpl and Make it Work???
I'm struggling with editing the contactus.tpl for my x-cart. I'm trying to remove fields like state, city, zip, fax, URL, etc so there is just basic contact fields. However, when I delete or comment these fields out the form doesn't work. It seems that this is mainly happening with the mandatory fields. I'm hoping to launch my site today, so if anyone can help it would be greatly appreciated!!!
-Amy |
you will need to edit the include/help.php file to edit the error checking procedure that is in place.
|
Interesting that they have error checking/validation on the contact us page, but not on the manual credit card processing page.
ATKOgirl |
it is isn't it - not a very complex one though and not good enough to validate cc numbers.
It's the thought that counts anyway... |
Funkydunk,
So what do I need to edit in help.php to allow me just to have these fields in the contactus.tpl? Username (NOT mandatory) First Name (mandatory) Last Name (mandatory) E-mail (mandatory) Subject (mandatory) Message (mandatory) Thanks! Amy |
If you are making username non compulsory - how are they going to log in?
There would be a vast amount of code to change to strip that part out.... 8O |
No. Actually username is already NOT mandatory in the contactus.tpl form. (no asterisk). In other words I would just leave those fields I want alone, with their mandatory/non mandatory fields. However, I don't need the other ones that are mandatory like street, city, state, etc.
Thanks! Amy |
sorry - been a long day - ignore my last post
|
I think you can just delete this part of the code in whichever field you dont want to be mandatory since this is where the error checking is. My example below is making the phone number not mandatory.
{if $fillerror ne "" and $userinfo.phone eq ""}<font class=Star><<</font>{/if} |
All times are GMT -8. The time now is 03:35 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.