Difference between revisions of "X-Cart:Contact Us Form Options"
(→How to change Departments on 'Contact us' page?) |
m (→Overview) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
{{Note1|Note: The email address for your store's Help/Support department can be specified in the 'General settings/Company options' section.}} | {{Note1|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 | + | This form is available via the <u>Help menu</u> to: |
+ | * customers; | ||
+ | * providers (in X-Cart PLATINUM and PRO); | ||
+ | * partners (in X-Cart based stores using X-Affiliate module). | ||
The '<u>General settings/Contact us form options</u>' page allows you to configure the set of fields that should be included into the '<u>Contact us</u>' form for each type of users. | The '<u>General settings/Contact us form options</u>' page allows you to configure the set of fields that should be included into the '<u>Contact us</u>' form for each type of users. | ||
Line 47: | Line 50: | ||
So, to rename the departments, you should edit these language variables (via the '<u>Content</u> -> <u>Languages'</u> menu) in the admin area). | So, to rename the departments, you should edit these language variables (via the '<u>Content</u> -> <u>Languages'</u> menu) in the admin area). | ||
− | {{XC 4. | + | {{XC 4.4}} |
− | To add or remove departments, edit the <u>' | + | To add or remove departments, edit the <u>'skin/common_files/help/contactus.tpl'</u> or <u>'skin/common_files/customer/help/contactus.tpl'</u> template files. |
<source> | <source> |
Latest revision as of 16:44, 8 October 2012
Contents
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.
This form is available via the Help menu to:
- customers;
- providers (in X-Cart PLATINUM and PRO);
- partners (in X-Cart based stores using X-Affiliate module).
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:
- Select the check boxes in the 'Active' column opposite the names of the fields you want to be available for completion.
- Select the check boxes in the 'Required' column opposite the names of the fields you want to be mandatory for completion.
- 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:
- Scroll down to the 'Additional fields' section of the 'General settings/Contact us form options' page.
- 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.
- 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)
- If you have chosen the Selectbox type, provide variants for the selectbox (use the ';' symbol as a delimiter).
- (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).
- 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.
- Select the 'Active' and (optionally) 'Required' check box(es) opposite the newly added field.
- 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?
Department titles are set in the following 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 the 'Content -> Languages' menu) in the admin area).
To add or remove departments, edit the 'skin/common_files/help/contactus.tpl' or 'skin/common_files/customer/help/contactus.tpl' template files.
<td nowrap="nowrap">
<select id="department" name="department">
<option value="All" {if $userinfo.department eq "All" or $userinfo.department eq ""}selected="selected"{/if}>{$lng.lbl_all}</option>
<option value="Partners" {if $userinfo.department eq "Partners"}selected="selected"{/if}>{$lng.lbl_partners}</option>
<option value="Marketing / publicity" {if $userinfo.department eq "Marketing / publicity"}selected="selected"{/if}>{$lng.lbl_marketing_publicity}</option>
<option value="Webdesign" {if $userinfo.department eq "Webdesign"}selected="selected"{/if}>{$lng.lbl_web_design}</option>
<option value="Sales" {if $userinfo.department eq "Sales"}selected="selected"{/if}>{$lng.lbl_sales_department}</option>
</select>
</td>
For example, to remove "Partners", delete this line from the code:
<option value="Partners" {if $userinfo.department eq "Partners"}selected="selected"{/if}>{$lng.lbl_partners}</option>
To add a new department, e.g. "Management", add the respective link to the code:
<option value="Management" {if $userinfo.department eq "Management"}selected="selected"{/if}>{$lng.lbl_management}</option>
You can also add the language variable for the new department in the 'Languages' section ('Add new entry'), e.g. lbl_management, in the admin area. In this case, the new code line in contactus.tpl would appear as:
<option value="Management" {if $userinfo.department eq "Management"}selected="selected"{/if}>{$lng.lbl_management}</option>