Hi Guys
I am also trying to get products to list vertically in a single column.
I have adapted the productPage.inc and renamed it A. Home.inc to work with the category of the same name. Problem is that images want to go next to each other instead of underneath.
I've checked and re-checked but I just cannot find what's doing it.
I'm using v5 of the cart and url:
http://www.nznichegreetings.co.nz
As always, your help is just invaluable.
Have the contents of the A. Home.inc below.
Regards
John
<!--agorascript-pre
{
# This file allows you to have any number of
# rows by setting the following variable
$ags_across = 1; # Number in a row
$ags_row_wd=int(100.0/$ags_across);
local ($myans)="";
if ($rowCount == (1+$minCount)) { #first one
$ags_row_item=0;
$ags_row_nmbr=0;
$ags_tot_item=0;
$myans .= '<tr><td colspan="2"><table width="100%" border="0" bgcolor="black">'."\n";
}
$ags_row_item++;
$ags_tot_item++;
if ($ags_row_item > 1) { # last one
if ($ags_row_item == $ags_across) {
$ags_row_item=0; #reset counter
$ags_row_nmbr++;
}
$myans .= '<td width="'.$ags_row_wd.'%" valign="top" bgcolor="black">';
} else { #first one
$myans .= '<tr><td width="'.$ags_row_wd.'%" valign="top">';
}
$myans.=qq~<form method="post" action="%%scriptURL%%">
%%make_hidden_fields%%
<table width="100%">
~;
return $myans;
}
-->
<tr><td class="ac_product_image"><a href="picserve.cgi?picserve=%%userFieldTwo%" onClick="MyWindow=window.open('picserve.cgi?picserve=%%userFieldTwo%%','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=806,height=402'); return false;" target="_new">%%image%%</a> </td></tr>
<tr><td>
<!--BEGIN PRODUCT_NAME AND PRODUCT_DESC-->
<!--END PRODUCT_NAME AND PRODUCT_DESC-->
<!--BEGIN SELECT QUANTITY BUTTON-->
<!--END SELECT QUANTITY BUTTON-->
</td></tr>
<!--agorascript-pre
{
local ($myans)="";
if ($ags_row_item == 0) { # last one
$myans .= '</table></form></td></tr>'."\n";
} else { # first one
$myans .= '</table></form></td>'."\n";
}
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
{ # very last one
if (!($ags_row_item == 0)) { # finish the row
# if ($ags_row_nmbr > 0) { # finish the row with blanks
while ($ags_row_item < $ags_across) {
$ags_row_item++;
$myans .= '<td width="'.$ags_row_wd.'%"> </td>';
}
# }
$myans .= '</tr>'."\n";
}
$myans .= '</table></td></tr>'."\n";
}
return $myans;
}
-->
_________________
A lack of alternatives, focuses the mind wonderfully!