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)
-   -   editing contact us form (https://forum.x-cart.com/showthread.php?t=14661)

pcarcare 06-19-2005 04:04 PM

editing contact us form
 
I would like to edit the cotact us page.

I would like the page to have only

First and Last Name
Email
phone
fax
and form for comments.

How do I edit the form. Also, where is the file located?

Thanks all

extreme 06-19-2005 05:34 PM

Looks to be under include\help.php

Haven't done anything with it myself but it might be a good place to start looking

extreme 06-19-2005 05:41 PM

Also under Edit Templates is help\contactus.tpl

pcarcare 06-19-2005 06:23 PM

I found the tpl to edit. But after I edited the file with front page and did a test, the form didn't submit.

So what did I do wrong or what else do i need to edit?

extreme 06-19-2005 08:05 PM

Not sure... did you look at the help.php file?

There's this bit:

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

Maybe you need to take some fields out of there so it doesn't produce an error when it looks for something that isn't there????

pcarcare 06-19-2005 08:27 PM

I havent look at that. I'll give it a try and let you all know.

balinor 06-20-2005 01:57 AM

Be very careful editing files with Front page or any other WYSIWYG editor. Many of them can't read Smarty tags and you will break your templates.


All times are GMT -8. The time now is 01:06 PM.

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