Advanced Development Solutions Home
Advanced Development Solutions Home
Advanced Development Solutions Home

Description / Features
Read Me First
Installation / Upgrade
Module Configuration
Template Layouts
FAQ
     

My Favorites QuickList Module Help for MIVA Merchant v5

Module Template Layouts Explained

This page contains module specific Original templates and comments that will assist you with making adjustments, to the actual template code. Templates for ADS My Favorites Page and Product List Layouts are explained below. 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.

This module automaticaly modifies your currently used PROD, BASK and LOGN page templates, when initially installed, to take advantage of new features. Your original templates are available using version history controls. You can further customize the location and appearance of pages and buttons by modifying the templates. Just make sure you do not change the name of the provided fields. Here are the changes that are automaticaly made to your templates.

  • PROD Page - Product Display Layout Tab - Added:
    <input type="hidden" name="Current_Screen" value="&mvta:global:Screen;">
    <input type="submit" name="myfavorites" value="Add to Favorites">

    Just below the Add to Basket Button
  • BASK Page - Added:
    <mvt:if expr="NOT l.settings:basket:empty">
    <BR><TABLE border=0 cellspacing=0 cellpadding=0 align="center">
    <TR>
    <TD>
    <form action="&mvt:global:sessionurl;" method="POST" name="adsmfaddbask" id="adsmfaddbask">
    <input type="hidden" name="Screen" value="ADS_MF">
    <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;">
    <input type="hidden" name="Current_Screen" value="&mvta:global:Screen;">
    <input type="hidden" name="Action" value="MFAB">
    <input type="submit" name="savetomyfavs" value="Save to My Favorites">
    </form>
    </TD>
    </TR>
    </TABLE>
    </mvt:if>

    Just below the <mvt:item name="basket" />.
  • LOGN Page - Added:
    <input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
    <input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;">
    <input type="hidden" name="Current_Screen" value="&mvte:global:Current_Screen;">
    <input type="hidden" name="Quantity" value="&mvte:global:Quantity;">
    <input type="hidden" name="Offset" value="&mvte:global:Offset;">
    <input type="hidden" name="Search" value="&mvte:global:Search;">
    <input type="hidden" name="MyFavorites" value="&mvte:global:MyFavorites;">

    Just below the <input type="hidden" name="Screen" value="SFNT">.

ADS My Favorites Page Template:
(ADS My Favorites variables are shown and explained below in red.)

<html>
<head>
<title>&mvt:store:name;</title>
<base href="&mvt:global:basehref;">
<mvt:item name="head" />
<SCRIPT LANGUAGE = "JavaScript"><mvt:comment>Javascript Functions</mvt:comment>
<!--
function CheckAll( Screen, field_base, checked)
{
var i;
var box;
for ( i = 1; ( box = document.forms[ Screen ].elements[ field_base +
"[" + i.toString() + "]" ] ) != null; i++ )
{
if ( !box.disabled )
{
box.checked = checked;
}
}
}
function Check( Screen, field_base, checked, field)
{
var box;
if ( ( box = document.forms[ Screen ].elements[ field_base +
"[" + field.toString() + "]" ] ) != null && !box.disabled) box.checked = checked;
}
//-->
</script>
</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="bottom">
<mvt:item name="hdft" param="header" />
</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" /><br><br>
</mvt:item>
</td></tr>
</table>
</td><td align="left" valign="top" width="80%">
<BR><mvt:item name="fonts" param="hdr_font"><font size="-1">
<A HREF="&mvt:global:sessionurl;Screen=SFNT&Store_Code=&mvta:global:Store_Code;">Home</A>
<mvt:comment>Breadcrumbs</mvt:comment>
&nbsp;>&nbsp;
<mvt:if expr="NOT ISNULL g.ADS_PageCode">
<b>&mvte:global:ADS_PageName;</b><BR>
</mvt:if>
</font></mvt:item><BR>
<mvt:comment> Product List Begin</mvt:comment>
<mvt:comment>Product List Layout Item</mvt:comment>
<mvt:item name="ads-myfavorites" param="prodlist"/>
<mvt:comment> Product List End</mvt:comment>
</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>
<html>


ADS Product List Layout Template:
(ADS My Favorites variables are shown and explained below in red.)

<mvt:if expr = "ISNULL l.settings:products"><mvt:comment>If no Products in Favorites</mvt:comment>
<table border=0 cellpadding=2 cellspacing=0 width="100%">
<tr>
<td align="left" valign="middle" bgcolor="&mvt:product:bgcolor;">
<mvt:item name="fonts" param="body_font">
<BR>No Items Available<BR>
</mvt:item>
</td>
</tr>
</table>
<mvt:else>
<mvt:comment>If Products in Favorites </mvt:comment>
<mvt:comment>Action Message</mvt:comment>
<mvt:item name="fonts" param="body_font">
<mvt:if expr = "l.settings:action_message EQ 'removed'">
Items Removed from Favorites:<BR>
<mvt:elseif expr = "l.settings:action_message EQ 'added'">
Items Added to Basket:<BR>
</mvt:if>
<mvt:foreach iterator="apl" array="action_prod_list">
<li>&mvt:apl:PROD_QTY; - &mvt:apl:PROD_CODE;<BR></li>
</mvt:foreach>
<mvt:comment>Pagination</mvt:comment>
<mvt:if expr = "l.settings:PAGINATION:PAGE">
<DIV align="right">
Products Found: &mvt:PAGINATION:PROD_COUNT;<BR>
<mvt:foreach iterator="paging" array="PAGINATION:PAGE">
<mvt:if expr = "l.settings:PAGINATION:CUR_PAGE EQ l.settings:paging:cntr">
[&mvt:paging:cntr;]
<mvt:else>
<a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:paging:offset;&sortby=&mvta:global:sortby;">&mvt:paging:cntr;</A>
</mvt:if>
</mvt:foreach>
</DIV><BR>
</mvt:if>
</mvt:item>
<mvt:comment>Product List Table</mvt:comment>
<table border=0 cellpadding=2 cellspacing=0 width="100%">
<tr>
<mvt:comment>Header Row with Checkbox selection and Sorting Links </mvt:comment>
<td align="center" valign="middle" bgcolor="&mvt:colors:lhdr_bg;" nowrap>
<b><a href="JavaScript:CheckAll( 'ADS_MF', 'prod:checked', 1 );" style="text-decoration: none;color: #FFFFFF;font-size: 11px;" title="Check All">&radic;+</a><a href="JavaScript:CheckAll( 'ADS_MF', 'prod:checked', 0 );" style="text-decoration: none;color: #FFFFFF;font-size: 11px;" title="Uncheck All">&radic;-</a></b>
</td>
<td align="left" valign="middle" bgcolor="&mvt:colors:lhdr_bg;" nowrap>
<mvt:item name="fonts" param="lhdr_font">
<mvt:if expr = "g.sortby EQ 'PCA'">
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCD" title="Descending" style="text-decoration: none;"><mvt:item name="fonts" param="lhdr_font">Code</mvt:item></A><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCD" style="text-decoration: none;color: #FF0000;font-size: 11px;" title="Descending">&or;</A></b>
<mvt:elseif expr = "g.sortby EQ 'PCD'">
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCA" style="text-decoration: none;" title="Ascending"><mvt:item name="fonts" param="lhdr_font">Code</mvt:item></A><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCA" style="text-decoration: none;color: #FF0000;font-size: 11px;" title="Ascending">&and;</A></b>
<mvt:else>
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCD" title="Descending" style="text-decoration: none;"><mvt:item name="fonts" param="lhdr_font">Code</mvt:item></A></b>
</mvt:if>
</mvt:item>
</td>
<td align="left" valign="middle" bgcolor="&mvt:colors:lhdr_bg;" width="100%">
<mvt:item name="fonts" param="lhdr_font">
<mvt:if expr = "g.sortby EQ 'PNA'">
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PND" title="Descending" style="text-decoration: none;"><mvt:item name="fonts" param="lhdr_font">Name</mvt:item></A><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCD" style="text-decoration: none;color: #FF0000;font-size: 11px;" title="Descending">&or;</A></b>
<mvt:elseif expr = "g.sortby EQ 'PND'">
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PNA" style="text-decoration: none;" title="Ascending"><mvt:item name="fonts" param="lhdr_font">Name</mvt:item></A><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCA" style="text-decoration: none;color: #FF0000;font-size: 11px;" title="Ascending">&and;</A></b>
<mvt:else>
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PND" title="Descending" style="text-decoration: none;"><mvt:item name="fonts" param="lhdr_font">Name</mvt:item></A></b>
</mvt:if>
</mvt:item>
</td>
<td align="right" valign="middle" bgcolor="&mvt:colors:lhdr_bg;" NOWRAP>
<mvt:item name="fonts" param="lhdr_font">
<mvt:if expr = "g.sortby EQ 'PRA'">
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PRD" title="Descending" style="text-decoration: none;"><mvt:item name="fonts" param="lhdr_font">Price</mvt:item></A><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCD" style="text-decoration: none;color: #FF0000;font-size: 11px;" title="Descending">&or;</A></b>
<mvt:elseif expr = "g.sortby EQ 'PRD'">
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PRA" style="text-decoration: none;" title="Ascending"><mvt:item name="fonts" param="lhdr_font">Price</mvt:item></A><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PCA" style="text-decoration: none;color: #FF0000;font-size: 11px;" title="Ascending">&and;</A></b>
<mvt:else>
<b><a href="&mvt:global:sessionurl;Screen=ADS_MF&Store_Code=&mvta:global:Store_Code;&offset=&mvta:global:offset;&sortby=PRD" title="Descending" style="text-decoration: none;"><mvt:item name="fonts" param="lhdr_font">Price</mvt:item></A></b>
</mvt:if>
</mvt:item>
</td>
<td align="right" valign="middle" bgcolor="&mvt:colors:lhdr_bg;" nowrap>
<mvt:item name="fonts" param="lhdr_font">
<b>Order:</b>
</mvt:item>
</td>
</tr>
<form method="post" action="&mvt:global:sessionurl;" name="ADS_MF">
<input type="hidden" name="Action" value="ADS_MF_ADPR">
<input type="hidden" name="Screen" value="&mvte:global:Screen;">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;">
<input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
<input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;">
<input type="hidden" name="Search" value="&mvte:global:Search;">
<input type="hidden" name="Offset" value="&mvte:global:Offset;">
<mvt:comment>Product Table Row</mvt:comment>
<mvt:foreach iterator="product" array="products">
<mvt:comment>Product Row Loop</mvt:comment>
<tr>
<td align="left" valign="middle" bgcolor="&mvt:product:bgcolor;" nowrap>
<mvt:item name="fonts" param="body_font">
<input type="hidden" name="Product_Code[&mvt:product:cntr;]" value="&mvta:product:code;">
<input type="hidden" name="attributes_serialized[&mvt:product:cntr;]" value="&mvte:product:attributes_serialized;">
<INPUT TYPE="checkbox" NAME="prod:checked[&mvt:product:cntr;]" value="Yes">
</mvt:item>
</td>
<td align="left" valign="middle" bgcolor="&mvt:product:bgcolor;" nowrap>
<mvt:item name="fonts" param="body_font">
<a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvta:global:Store_Code;&Product_Code=&mvta:product:code;">&mvt:product:code;</a>
</mvt:item>
</td>
<td align="left" valign="middle" bgcolor="&mvt:product:bgcolor;">
<mvt:item name="fonts" param="body_font">
&mvt:product:name;
</mvt:item>
</td>
<td align="right" valign="middle" bgcolor="&mvt:product:bgcolor;" nowrap>
<mvt:item name="fonts" param="body_font">
&mvt:product:formatted_price;
</mvt:item>
</td>
<td align="right" valign="middle" bgcolor="&mvt:product:bgcolor;" nowrap><INPUT TYPE="text" NAME="Quantity[&mvt:product:cntr;]" size=4 value="" onBlur="Check( 'ADS_MF', 'prod:checked', 1, &mvt:product:cntr;);">
</td>
</tr>
<mvt:comment>Attribute Option Table Row Loop </mvt:comment>
<mvt:foreach iterator="option" array="product:attributes">
<tr bgcolor="&mvt:product:bgcolor;">
<td align="left">
&nbsp;
</td>
<td align="left">
&nbsp;
</td>
<td align="left">
<mvt:item name="fonts" param="body_font">
<mvt:if expr="l.settings:option:TEMPLATE_CODE AND NOT ISNULL l.settings:option:VALUE">
&mvt:option:TEMPLATE_CODE;: &mvt:option:VALUE;
<mvt:elseif expr="l.settings:option:TEMPLATE_CODE AND ISNULL l.settings:option:VALUE">
&mvt:option:TEMPLATE_CODE;
<mvt:elseif expr="NOT ISNULL l.settings:option:VALUE">
&mvt:option:code;: &mvt:option:VALUE;
<mvt:else>
&mvt:option:CODE;
</mvt:if>
</mvt:item>
</td><td align="right" nowrap>
<mvt:item name="fonts" param="body_font">
<mvt:if expr="l.settings:option:price">
&mvt:option:formatted_price;
<mvt:else>
&nbsp;
</mvt:if>
</mvt:item>
</td>
<td align="right" valign="middle" bgcolor="&mvt:product:bgcolor;" nowrap>&nbsp;</td>
</tr>
</mvt:foreach>
</mvt:foreach>
</table>
<mvt:comment>Submit Inputs </mvt:comment>
<BR><CENTER><INPUT NAME="addtobasket" TYPE="submit" VALUE="Add to Basket">
<INPUT NAME="removefromlist" TYPE="submit" VALUE="Remove from My Favorites" onClick="return confirm('Deleting selected item(s) will remove them permanently from your list.nIt cannot be restored later.nnContinue?')"></CENTER>
</FORM>
<mvt:comment>Previous Next Navigation</mvt:comment>
<mvt:if expr="g.Offset OR g.NextOffset">
<br>
<table border="0" width="90%" align="center">
<tr>
<mvt:if expr="g.Offset EQ 0">
<td>&nbsp;</td>
<mvt:else>
<td align="left">
<mvt:item name="fonts" param="body_font">
<form method="post" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="&mvte:global:Screen;">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;">
<input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
<input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;">
<input type="hidden" name="Search" value="&mvte:global:Search;">
<input type="hidden" name="sortby" value="&mvte:global:sortby;">
<input type="hidden" name="Offset" value="&mvte:global:PrevOffset;">
<mvt:item name="buttons" param="Previous" />
</form>
</mvt:item>
</td>
</mvt:if>
<mvt:if expr="g.NextOffset EQ 0">
<td>&nbsp;</td>
<mvt:else>
<td align="right">
<mvt:item name="fonts" param="body_font">
<form method="post" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="&mvte:global:Screen;">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;">
<input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
<input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;">
<input type="hidden" name="Search" value="&mvte:global:Search;">
<input type="hidden" name="sortby" value="&mvte:global:sortby;">
<input type="hidden" name="Offset" value="&mvte:global:NextOffset;">
<mvt:item name="buttons" param="Next" />
</form>
</mvt:item>
</td>
</mvt:if>
</tr>
</table>
</mvt:if>
</mvt:if>


"architects of the web since 1998"
Learn more about our services

Build Your Business Online!

SERVICES | CONTACT US | HOME