Sorry...I thought I should post the code in the pageproduct.inc file. I had assumed everyone knew. >.<
Code:
<!--agorascript-pre
{ #Start of controller code, probably should leave this alone ;-)
local ($myans)="";
if ($rowCount == (1+$minCount)) { #first one
$ags_row_item=0;
$ags_tot_item=0;
$myans .= '<tr><td colspan=1><table width="100%" border=1>'."\n";
}
$ags_row_item++;
$ags_tot_item++;
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
{ # very last one, need to join these two cells, no border
if ($ags_row_item == 1) { # first and only one
$myans .= '<td width="100%" colspan=1><table width=100% border=1>'."\n";
$myans .= '<tr>'."\n";
}
}
if ($ags_row_item == 2) { # second one
$ags_row_item=0; #reset counter
$myans .= '<td width="50%"><table width=100% border=0>'."\n";
} else { #first one
$myans .= '<tr><td width="50%"><table width=100% border=0>'."\n";
}
return $myans;
} # end of controller code
-->
<TR WIDTH="100%">
<TD ALIGN="CENTER" WIDTH="160" VALIGN="MIDDLE">
<FONT FACE="Trebuchet MS" SIZE="2">
<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<BR>
%%optionFile%%
<BR>
<P>
<!--BEGIN SELECT QUANTITY BUTTON-->
<TABLE>
<TR ALIGN="CENTER">
<TD VALIGN="MIDDLE">%%QtyBox%%</TD>
<TD VALIGN="MIDDLE"><INPUT TYPE="IMAGE"
NAME="add_to_cart_button" VALUE="Add To Cart"
SRC="%%URLofImages%%/add_to_cart.gif" BORDER="0">
</TD>
</TR>
</TABLE>
<!--END SELECT QUANTITY BUTTON-->
</TD>
<TD ALIGN="CENTER" WIDTH="150"><A HREF="javascript:popUp('%%URLOfImages%%%%UserFieldTwo%%,border=0')">%%image%%</A></TD>
</tr>
<!--agorascript-pre
{ # more controller code
local ($myans)="";
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
{ # very last one
if ($ags_row_item == 1) { # first and only one
$myans .= '</table></td>'."\n";
$myans .= '<td width="50%"><table width=100%>'."\n";
}
}
return $myans;
} # end controller code
-->
<tr><TD colspan=1>
<FONT FACE="Trebuchet MS" SIZE="2">
<b>%%name%%</b>
<br>
%%description%%
</FONT>
</TD>
</FORM>
</TR>
<TR>
<td colspan=2><table width='100%' border=0 cellpadding=0 cellspacing=0>
<tr><td width='33%' align=center>
<FONT FACE="Trebuchet MS" SIZE="2" color="#FF0000">%%price%%</font>
</td>
<td width='33%' align=center>
<A HREF="%%scripturl%%?dc=1&%%href_fields%%"><FONT FACE=Trebuchet MS>View Cart</FONT>
</A>
</td>
<td width = '33%' align=center>
<A HREF='%%StepOneURL%%?order_form_button.x=1&%%href_fields%%'><FONT
FACE=Trebuchet MS>Check Out</FONT>
</A>
</TD>
</tr></table>
</TD>
</TR>
<!--agorascript-pre
{ # more controller code
local ($myans)="";
if ($ags_row_item == 1) { # first one
$myans .= '</table></td>'."\n";
} else { # second one
$myans .= '</table></td></tr>'."\n";
}
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
{ # very last one, need to join these two cells, no border
if ($ags_row_item == 1) { # first and only one
$myans .= '</tr></table></td>'."\n";
}
}
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
{ # very last one
# if ($ags_row_item == 1) { # finished first one, add a blank dummy
#second
# $myans .= '<td> </td></tr>'."\n";
# }
$myans .= '</table></td></tr>'."\n";
}
return $myans;
} # end controller code
-->