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

marc2000 09-23-2003 01:00 PM

How to change contact us form?
 
Hello,

I want to change the "contact us" form.

I want to change the field department and put there something else in the drop down box! How can I change this? I allready looked at contactus.tpl.
I changed the words there but it didn't work!

Where is the form sent after you enter submit button?

Marc

shan 09-23-2003 03:23 PM

look in contactus.tpl and change this bit

Code:

<tr valign=middle>
<td class=FormButton>{$lng.lbl_department}</td>
<td><font class=Star>*</font></td>
<td nowrap>
<select name=department>
<option value="All" selected>{$lng.lbl_all}</option>
<option value="Partners">{$lng.lbl_partners}</option>
<option value="Marketing / publicity">{$lng.lbl_marketing_publicity}</option>
<option value="Webdesign">{$lng.lbl_web_design}</option>
<option value="Sales">{$lng.lbl_sales}</option>
</select>
</td>
</tr>


august 10-04-2003 08:52 PM

Hi Shan,
it is posible to eliminate some fields in the contac us without affecting the site? There are some that are silly to ask to a customer, like about their web site, or address.

groovico 10-05-2003 11:29 AM

you can make those fields "hidden" fields instead.

august 10-05-2003 05:08 PM

Is a really good idea. How do I do that? Will the tables take the space?

wilsha 10-08-2003 09:07 AM

I'd like to have a little help also with making changes to the contactus form.

I think also it is just too many fields for someone to fill out. I understand the postabout making them hidden, but several of the ones I want hidden are currently set as required. Will making them hidden still work if they are required fields?

Thank you for your assistance.

Nancy

shan 10-08-2003 09:12 AM

look in help.php too. thats where the error checking happens

wilsha 10-08-2003 09:47 AM

Thanks.

I'll look there also. I did make one hidden that is required, and it was a "no go"

So now I'm off to check the help.php on the required part.

Thanks again. I may be back though. *S*

Nancy

august 10-08-2003 10:08 AM

To make it hidden, do you have to use a html tag or do you have to use the smarty tag {* ?

wilsha 10-08-2003 02:40 PM

Thanks Shan. That did the trick.

Can you tell in quick terms the difference between the contactus.tpl and contactusmaster.tpl. So far I have only eleminated those fields in the contactus.tpl file. Do I need to do both?

Thanks,
Nancy

august 10-08-2003 03:47 PM

Could you post how you disable the required fields in the /include/help.php
Thanks

wilsha 10-08-2003 04:22 PM

Well it was a lucky guess on my part for some of it, but if you open the file you will see a section referring to $fillerror

That section shows which fields are required, so I carefully deleted the section that I didn't want.

(empty($contact["firstname"]) || is the part you need to delete. what I just pasted is an example, because I actually left first name. But the others, referring to country or address or phone I deleted. be very careful you don't take out any necessary part. I did them only one at a time.

Then I went to the contactus.tpl file and found the sections referring to the form fields I didn't want. I selected the entire table row holding that information for each section and deleted.

I started with the zip code first - it seemed easy to find and then I tested the form to be sure it would submit.

After that was successful, I just did the rest of the fields one at a time and tested. First the section in the help.php file, then the tpl file, then test. Repeat those steps.

Hope this helps.

Nancy

august 10-08-2003 05:11 PM

Thanks, that worked fine. I'll change my other sites, I wanted to do this for a while.

cotc2001 11-17-2003 07:31 AM

following on from the above (in a bizarre kind of way), is there anyway I can add an extra field into the contact us page that will get mailed to the admins??

for example I could do with another non requried field that is order number - so that if a customer has a query about their order they can add in the order number to the form (ok they could use the subject or content but I could do with a seperate box)

Using xcart 3.3.3


All times are GMT -8. The time now is 09:27 PM.

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