Contact
Form Pro Module Help for MIVA
Merchant v5
Module
Template Layouts Explained
This
module automatically modifies
your ADS_CF
Contact Us page template,
Settings
and Email templates,
when it is first installed.
This page contains the
module specific Original
templates and comments
that will assist you with
making adjustments, to
the actual template code.
You can also use it as
a guide to creating additional
customized Contact Pages,
beyond the default templates.
HTML and template scripting
knowledge is required
to make template modifications.
If you do not have these
skills it is recommended
you contact
ADS representative
to get assistance with
template design and customization.
ADS_CF
Contact Us Page Template:
(ADS
Contact Form Pro items
and variables are shown
and explained below in
red.)
<html>
<head>
<title>&mvt:store:name;:
Contact Us</title>
<base href="&mvt:global:basehref;">
<mvt:item name="head"
/>
</head>
<mvt:item
name="body">
<mvt:item name="hdft"
param="global_header"
/>
<table border="0"
cellpadding="0"
cellspacing="0"
width="100%">
<tr><td align="left"
valign="bottom"
colspan=2 >
<mvt:item name="navbar"
/>
</td></tr>
<tr><td
align="left"
valign="top"
bgcolor="&mvt:colors:ctgy_bg;">
<table border="0"
cellpadding="10"
cellspacing="0">
<tr><td align="left"
valign="top"
nowrap>
<mvt:item name="fonts"
param="ctgy_font">
<mvt:item name="customerlink"
/>
<mvt:item name="affiliatelink"
/>
<mvt:item name="category_tree"
/>
</mvt:item>
</td></tr>
</table>
</td><td align="left"
valign="top"
width="80%">
<br>
<blockquote>
<mvt:item name="hdft"
param="header"
/>
</mvt:if><mvt:if
expr="NOT ISNULL
g.ADS_PageCode"><mvt:comment>If
Page Tiltle Exists</mvt:comment>
<mvt:item name="fonts"
param="hdr_font">
<b>&mvte:ADS_PageName;</b><BR><mvt:comment>Display
Page Tiltle </mvt:comment>
</mvt:item>
</mvt:if>
<mvt:if expr="g.ads_cf_submit"><mvt:comment>Check
if Form is Submitted</mvt:comment>
<mvt:item name="ads-contactform"
param="process"
/><mvt:comment>Required
Module Item that processes
the Requst</mvt:comment>
<mvt:if expr="l.settings:form_error"><mvt:comment>If
Required Fields are Missing
and Field Array</mvt:comment>
<mvt:foreach iterator="missing_field"
array="form_error">
<FONT SIZE="2"
COLOR="red"
FACE="arial">&mvt:missing_field;
is Required.</FONT><BR>
</mvt:foreach>
<mvt:elseif expr="l.settings:send_error"><mvt:comment>If
Email Errors an Error
Array</mvt:comment>
<mvt:foreach iterator="unable2send"
array="send_error">
<FONT SIZE="2"
COLOR="red"
FACE="arial">&mvt:unable2send;<BR>Unable
to send request. Please
contact the webmaster
with details about this
error.</FONT><BR>
</mvt:foreach>
<mvt:else><mvt:comment>Contact
Email Sent Message</mvt:comment>
<FONT SIZE="2"
FACE="arial">Thank
You! Your request has
been processed. We try
to respond to all requests
within 24 hours.</FONT><BR>
</mvt:if>
</mvt:if>
<mvt:if expr="NOT
g.ads_cf_submit OR l.settings:form_error
OR l.settings:send_error"><mvt:comment>Contact
Form</mvt:comment>
<form method="POST"
action="&mvt:global:sessionurl;">
<input type="hidden"
name="Screen"
value="&mvt:global:Screen;">
<input type="hidden"
name="Store_Code"
value="&mvte:store:code;">
<input type="hidden"
name="required"
value="Subject,First_Name,Last_Name,EMail,Message"><mvt:comment>Required
Fields List</mvt:comment>
<table width="100%">
<tr valign="top">
<td width="200"
align="left">
<table width="100%"
border="0" cellspacing="0"
cellpadding="1"
align="center">
<tr>
<td nowrap width="200">
<div align="left"><font
face="Arial, Helvetica,
sans-serif" size="2"><b>Subject:
</b></font></div></td>
<td nowrap><font
face="Arial, Helvetica,
sans-serif" size="2"><b><font
size="2" face="Arial,
Helvetica, sans-serif">
<input name="Subject"
type="text"
id="Subject"
size="30" maxlength="40"
value="&mvt:global:Subject;">
</font> </b></font>
</td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Company:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="Company_Name"
size="30" maxlength="40"
value="&mvt:global:Company_Name;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>First
Name:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="First_Name"
size="30" maxlength="40"
value="&mvt:global:First_Name;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Last
Name:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="Last_Name"
size="30" maxlength="40"
value="&mvt:global:Last_Name;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Address:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="Address"
size="30" maxlength="40"
value="&mvt:global:Address;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>City:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="City"
size="30" maxlength="40"
value="&mvt:global:City;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>State:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="State"
size="30" maxlength="25"
value="&mvt:global:State;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Zip:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="Zip" size="30"
maxlength="15"
value="&mvt:global:Zip;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Phone:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="Phone_Number"
size="30" maxlength="40"
value="&mvt:global:Phone_Number;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Email:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
<input type="text"
name="EMail"
size="30" maxlength="40"
value="&mvt:global:EMail;">
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>How
Did You Hear about Us:</b></FONT></div></td>
<td nowrap> <font
size="2" face="Arial,
Helvetica, sans-serif">
<select name="How_Did_You_Hear_about_Us">
<option value="No
Choice" selected>Choose
One</option>
<option value="No
Choice">-----------------------------------</option>
<mvt:if expr="g.How_Did_You_Hear_about_Us
EQ 'Advertisement'">
<option value="Advertisement"
selected>Advertisement</option>
<mvt:else>
<option value="Advertisement">Advertisement</option>
</mvt:if>
<mvt:if expr="g.How_Did_You_Hear_about_Us
EQ 'Already A Customer'">
<option value="Already
A Customer" selected>Already
A Customer</option>
<mvt:else>
<option value="Already
A Customer">Already
A Customer</option>
</mvt:if>
<mvt:if expr="g.How_Did_You_Hear_about_Us
EQ 'Another Customer'">
<option value="Another
Customer" selected>Another
Customer</option>
<mvt:else>
<option value="Another
Customer">Another
Customer</option>
</mvt:if>
<mvt:if expr="g.How_Did_You_Hear_about_Us
EQ 'Search Engine/Online'">
<option value="Search
Engine/Online" selected>Search
Engine/Online</option>
<mvt:else>
<option value="Search
Engine/Online">Search
Engine/Online</option>
</mvt:if>
<mvt:if expr="g.How_Did_You_Hear_about_Us
EQ 'Referral'">
<option value="Referral"
selected>Referral</option>
<mvt:else>
<option value="Referral">Referral</option>
</mvt:if>
<mvt:if expr="g.How_Did_You_Hear_about_Us
EQ 'Other'">
<option value="Other"
selected>Other</option>
<mvt:else>
<option value="Other">Other</option>
</mvt:if>
</select>
</font></td>
</tr>
<tr>
<td nowrap width="200"
valign="top">
<div align="left"><B><FONT
size="2" face="Arial,
Helvetica, sans-serif">Your
Message:</FONT></B></div></td>
<td nowrap> <TEXTAREA
name="Message"
cols="25" rows="5">&mvt:global:Message;</TEXTAREA>
</td>
</tr>
<tr>
<td nowrap colspan="2">
<div align="center"><br>
<input name="ads_cf_submit"
type=submit value="Send
Request" border=0><mvt:comment>Submit
Form Field - Name is used
in the IF statement</mvt:comment>
<INPUT TYPE="reset"
value="Reset Form">
</div></td>
</tr>
</table></td>
</tr>
</table>
</form>
</mvt:if>
<mvt:item name="hdft"
param="footer"
/>
</blockquote>
</td></tr>
<tr><td
align="left"
valign="bottom">
</td></tr>
</table>
<mvt:item
name="hdft"
param="global_footer"
/>
</mvt:item>
</html>
ADS
Contact Email HTML Template:
(Use
global variables to populate
Email message with form
field elements. Global
variables are shown below
in red.)
<html>
<head>
<title>&mvt:store:name;:
Contact Us</title>
<base href="&mvt:global:basehref;">
<mvt:item name="head"
/>
</head>
<mvt:item
name="body">
<mvt:item name="hdft"
param="global_header"
/>
<table border="0"
cellpadding="0"
cellspacing="0"
width="100%">
<tr><td align="left"
valign="bottom">
<mvt:item name="hdft"
param="header"
/>
</td></tr>
<tr><td
align="left"
valign="top"
width="100%">
<br>
<blockquote>
<table width="100%">
<tr valign="top">
<td align="left">
<table width="100%"
border="0" cellspacing="0"
cellpadding="1"
align="center">
<tr>
<td nowrap width="200">
<div align="left"><font
face="Arial, Helvetica,
sans-serif" size="2"><b>Subject:
</b></font></div></td>
<td nowrap><font
face="Arial, Helvetica,
sans-serif" size="2"><b><font
size="2" face="Arial,
Helvetica, sans-serif">
&mvt:global:Subject;
</font> </b></font>
</td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Company:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:Company_Name;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>First
Name:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:First_Name;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Last
Name:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:Last_Name;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Address:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:Address;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>City:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:City;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>State:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:State;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Zip:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:Zip;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Phone:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:Phone_Number;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>Email:</b></FONT></div></td>
<td nowrap><b>
<font size="2"
face="Arial, Helvetica,
sans-serif">
&mvt:global:EMail;
</font></b></td>
</tr>
<tr>
<td nowrap width="200">
<div align="left"><FONT
face="Arial, Helvetica,
sans-serif" size="2"><b>How
Did You Hear about Us:</b></FONT></div></td>
<td nowrap> <B><font
size="2" face="Arial,
Helvetica, sans-serif">
&mvt:global:How_Did_You_Hear_about_Us;
</font></B></td>
</tr>
<tr>
<td nowrap width="200"
valign="top">
<div align="left"><B><FONT
size="2" face="Arial,
Helvetica, sans-serif">Your
Message:</FONT></B></div></td>
<td nowrap><B><FONT
size="2" face="Arial,
Helvetica, sans-serif">&mvt:global:Message;
</FONT></B></td>
</tr>
</table></td>
</tr>
</table>
</blockquote>
</td></tr>
<tr><td
align="left"
valign="bottom">
<mvt:item name="hdft"
param="footer"
/>
</td></tr>
</table>
<mvt:item
name="hdft"
param="global_footer"
/>
</mvt:item>
</html>
ADS
Contact Email TEXT Template:
(Use
global variable entities
to populate Email message
with form field elements.
Global variables are shown
below in red.)
Subject:
&mvt:global:Subject;
Company: &mvt:global:Company_Name;
First Name: &mvt:global:First_Name;
Last Name: &mvt:global:Last_Name;
Address: &mvt:global:Address;
City: &mvt:global:City;
State:
&mvt:global:State;
Zip: &mvt:global:Zip;
Phone:
&mvt:global:Phone_Number;
Email: &mvt:global:EMail;
How Did You Hear about
Us: &mvt:global:How_Did_You_Hear_about_Us;
Your Message: &mvt:global:Message;
|