Difference between revisions of "X-Cart:Contact Us Form Options"

From X-Cart 4 Classic
Jump to: navigation, search
Line 1: Line 1:
 +
==Overview==
 +
 
X-Cart provides a form that allows users to submit messages to the store's Help/Support department - the so-called '<u>Contact us</u>' form.
 
X-Cart provides a form that allows users to submit messages to the store's Help/Support department - the so-called '<u>Contact us</u>' form.
  
Line 41: Line 43:
 
* Webdesign - lbl_web_design
 
* Webdesign - lbl_web_design
 
* Sales - lbl_sales_department
 
* Sales - lbl_sales_department
* Partners - lbl_partners  
+
* Partners - lbl_partners
  
So to rename the departments you should edit these language variables (via '<u>Languages'</u> in the admin area).  
+
So to rename the departments you should edit these language variables (via '<u>Languages'</u> in the admin area).
  
If you want to add/remove departments, you should edit template <u>'skin1/help/contactus.tpl'</u> (for 4.0.x, 4.1.x) or <u>'skin1/customer/help/contactus.tpl'</u> (for 4.2.x).  
+
If you want to add/remove departments, you should edit template <u>'skin1/help/contactus.tpl'</u> (for 4.0.x, 4.1.x) or <u>'skin1/customer/help/contactus.tpl'</u> (for 4.2.x).
  
 
<source>
 
<source>
Line 56: Line 58:
 
<option value="Sales">{$lng.lbl_sales_department}</option>
 
<option value="Sales">{$lng.lbl_sales_department}</option>
 
</select>
 
</select>
</td>  
+
</td>
 
</source>
 
</source>
  
 
For ex., to remove "Partners", delete this line
 
For ex., to remove "Partners", delete this line
 
<source>
 
<source>
<option value="Partners">{$lng.lbl_partners}</option>  
+
<option value="Partners">{$lng.lbl_partners}</option>
 
</source>
 
</source>
  
 
To add a new department e.g. "Management", append a similar link to this code:
 
To add a new department e.g. "Management", append a similar link to this code:
 
<source>
 
<source>
<option value="Management">Management</option>  
+
<option value="Management">Management</option>
 
</source>
 
</source>
  

Revision as of 13:36, 3 February 2010

Overview

X-Cart provides a form that allows users to submit messages to the store's Help/Support department - the so-called 'Contact us' form.

Note: The email address for your store's Help/Support department can be specified in the 'General settings/Company options' section.

This form is available to customers (X-Cart GOLD and PRO), providers (X-Cart PRO) and partners (X-Cart GOLD and PRO using X-Affiliate add-on module) via the Help menu.

The 'General settings/Contact us form options' page allows you to configure the set of fields that should be included into the 'Contact us' form for each type of users.

Configuring the set of fields included into the 'Contact us' form

You can define, which of the 'Contact us' form fields should be active (visible to the user), and completion of which fields should be required (mandatory). Required fields will be marked by a red asterisk (*) sign so the user knows they are mandatory for completion; a special validation routine will ensure that all the required fields are completed by the user before the form is submitted.

To configure the 'Contact us' form field set:

  1. Select the check boxes in the 'Active' column opposite the names of the fields you want to be available for completion.
  2. Select the check boxes in the 'Required' column opposite the names of the fields you want to be mandatory for completion.
  3. Click the Save button below the list of 'Contact us' form fields to apply the changes.

Adding custom fields to the 'Contact us' form

If the field set for the 'Contact us' form provided by X-Cart does not meet all of your needs, you can add your own fields to the 'Contact us' form.

To add a custom field to the 'Contact us' form:

  1. Scroll down to the 'Additional fields' section of the 'General settings/Contact us form options' page.
  2. Use the input box in the FIELD NAME column of the 'Add new field' subsection to enter a name for the field you wish to add.
  3. Use the drop-down box in the TYPE column of the 'Add new field' subsection to select a type of field that needs to be added (Text, Check box or Selectbox)
  4. If you have chosen the Selectbox type, provide variants for the selectbox (use the ';' symbol as a delimiter).
  5. (Optional) Use the field in the POS. column to enter a position number of the field being created relative to the other additional fields (if any).
  6. Click the Add/Update button at the bottom of the form to save the changes. The new field should be added to the list of fields in the 'Additional information' section.
  7. Select the 'Active' and (optionally) 'Required' check box(es) opposite the newly added field.
  8. Click the Save button below the list of 'Contact us' form fields to apply the changes.

FAQ

How to change Departments on 'Contact us' page?

Departments titles are language variables:

  • Marketing / publicity - lbl_marketing_publicity
  • Webdesign - lbl_web_design
  • Sales - lbl_sales_department
  • Partners - lbl_partners

So to rename the departments you should edit these language variables (via 'Languages' in the admin area).

If you want to add/remove departments, you should edit template 'skin1/help/contactus.tpl' (for 4.0.x, 4.1.x) or 'skin1/customer/help/contactus.tpl' (for 4.2.x).

<td nowrap="nowrap">
<select id="department" name="department">
<option value="All" selected="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_department}</option>
</select>
</td>

For ex., to remove "Partners", delete this line

<option value="Partners">{$lng.lbl_partners}</option>

To add a new department e.g. "Management", append a similar link to this code:

<option value="Management">Management</option>

Also you can add a language variable for the new department in section 'Languages' ('Add new entry'), e.g. lbl_management. In this case, the new code line in contactus.tpl will be:

<option value="Partners">{$lng.lbl_management}</option>