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 Delete Fields in Contactus.tpl and Make it Work??? (https://forum.x-cart.com/showthread.php?t=995)

fusionartstamps 12-18-2002 10:28 AM

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

funkydunk 12-18-2002 11:19 PM

you will need to edit the include/help.php file to edit the error checking procedure that is in place.

ATKOgirl 12-19-2002 06:42 AM

Interesting that they have error checking/validation on the contact us page, but not on the manual credit card processing page.

ATKOgirl

funkydunk 12-19-2002 07:30 AM

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...

fusionartstamps 12-19-2002 09:39 AM

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

funkydunk 12-19-2002 09:49 AM

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

fusionartstamps 12-19-2002 09:53 AM

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

funkydunk 12-19-2002 10:01 AM

sorry - been a long day - ignore my last post

windza 03-13-2003 03:09 PM

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>&lt;&lt;</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.