Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to Delete Fields in Contactus.tpl and Make it Work???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-18-2002, 10:28 AM
 
fusionartstamps fusionartstamps is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 124
 

Default 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
Reply With Quote
  #2  
Old 12-18-2002, 11:19 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

you will need to edit the include/help.php file to edit the error checking procedure that is in place.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 12-19-2002, 06:42 AM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default

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

ATKOgirl
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #4  
Old 12-19-2002, 07:30 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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...
__________________
ex x-cart guru
Reply With Quote
  #5  
Old 12-19-2002, 09:39 AM
 
fusionartstamps fusionartstamps is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 124
 

Default

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
Reply With Quote
  #6  
Old 12-19-2002, 09:49 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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....
__________________
ex x-cart guru
Reply With Quote
  #7  
Old 12-19-2002, 09:53 AM
 
fusionartstamps fusionartstamps is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 124
 

Default

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
Reply With Quote
  #8  
Old 12-19-2002, 10:01 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

sorry - been a long day - ignore my last post
__________________
ex x-cart guru
Reply With Quote
  #9  
Old 03-13-2003, 03:09 PM
 
windza windza is offline
 

Newbie
  
Join Date: Mar 2003
Posts: 1
 

Default

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}
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:55 AM.

   

 
X-Cart forums © 2001-2020