PDA

View Full Version : how NOT to display product previews



seanquinn
April 1st, 2003, 04:11 PM
I have set up my store to have 2 categories, and each category has only 4 products. I would like to have the shopper select the category and then have all products display at the detail level - this way they can purchase from this page without having to click to another page.

I can't seem to determine how to "by-pass" the preview page and list all products at the detail level.

I looked through the forum but could not find a similiar thread.

Thx.
Sean
www.stamina-rx.com/store.php

Jamie
April 1st, 2003, 05:01 PM
Hi Sean,

First, make sure you have a custom theme, and understand how to properly modify templates (in installation docs). Then:

1. Open "show_product_detail.php"
2. Select all text, and copy it to clipboard
3. Open "show_product.php"
4. Select all text, and delete it.
5. Paste clipboard contents into "show_product.php"
6. Add "<td>" at the top of the file, and "</td>" at the bottom
7. Save the file.

The end result should look like this:


<td height="190">
<form action="<?=$Form_Action?>" method="post">
<table border="0">
<tr>
<td colspan="2">
<div class="product_name" style="margin-bottom: 10; width: 100%"><?=$Name?></div>
</td>
</tr>
<tr>
<td valign="top">
<?=$Image_in_Large_Image_Link?>
</td>
<td align="left" valign="top" style="height: 100%; width: 100%; vertical-align: top; text-align:left; margin-left: 2">
<?=$Description?>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" size="1">
</td>
</tr>
<tr>
<td colspan="2">
<?=$Base_Price?><br><br>
<?=$Options?>
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="0" cellpadding="8">
<tr>
<td width="50%" style="text-align:right">
<b>Quantity: </b><input type="text" name="quantity" size="3" value="1">
</td>
<td width="50%" style="padding-top:10px; text-align: left">
<?=$Add_to_Cart?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr width="100%" size="1">
</td>
</tr>
</table>
</form>
</td>


You can then set "Products per Row" in your store settings to 1 if you do not want them to display side by side.

Thanks,
Jamie

seanquinn
April 1st, 2003, 05:43 PM
Thank you. That worked! I just need to fix the alignment and it will be perfect.

You're quick and accurate as always!