| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Mandatory fields on the Contact Us form | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Can anyone advise me on how I can stop a field on the Contact Us form, from being mandatory.
For example, I don't really need to know the person's full address, and I feel that making this compulsory will only frustrate a potential customer, with the risk of losing them. I really only need to know his name, email address, email subject and his/her message. Grateful for your advice. Thanks, Robert (V 3.5.3) |
|||||||
#2
|
|||||||||
|
|||||||||
![]() edit include/help.php:
Code:
Update the code accordingly ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() Hi Boomer,
Thanks for your response .. which I am anxious to try out .. please just guide me to where I find Include/help.php .... is this accessed from the Admin area? I've looked around the Templates area, which I am getting more familiar with, but can't find these files with the .php extension. Sorry .. this must be sooo basic. Many thanks Robert
__________________
Risky V3.5.3 With Options-based inventory tracking mod, by X-cart |
|||||||
#4
|
|||||||||
|
|||||||||
![]() It's in the include directory in your main x-cart directory.
e.g. If your x-cart is installed in shop then help.php will be in shop/include LeeD
__________________
Why a mouse when it spins ...... X-Cart Gunslingers - For Hire!! http://forum.x-cart.com/viewtopic.php?t=8615 |
|||||||||
#5
|
|||||||
|
|||||||
![]() Thanks people for your help .. your suggestions greatly helped, but it wasn't the full story. Here's what else is required if it helps anyone else.
If you just edit help.php, and the customer accidentally still omits any of the fields you have left as mandatory, there is code in the help/contactus.tpl that also checks and marks fields on the Contact Us form that are mandatory and it will still find the omissions. So, you need to edit the tpl file to remove or comment out these checks on the fields that aren't mandatory, PLUS you need to remove the red asterisks that mark those same fields as being mandatory (for the customer to see). I simply replaced the "*" characters with " " (which will make it easier if I ever want to reinstate some/all of my changes later on). Now, the form looks and works exactly like I wanted, with only a few mandatory fields.
__________________
Risky V3.5.3 With Options-based inventory tracking mod, by X-cart |
|||||||
#6
|
|||||||
|
|||||||
![]() Hi Risky,
Thanks for the followup. I was wondering, does anyone know how to do this on the checkout page...registration. Where it asks for your name, title, billing and shipping address...etc? I can see that this page is built from a series of includes. So for example if I did not want to make EMAIL required during checkout? Thanks, rgbdna
__________________
v.3.10.5 Great creative direction is clarity cleverly delivered. |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
include/register.php
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|