View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Product Results Layout

Thread began 6/30/2009 9:54 pm by anitah355532 | Last modified 1/21/2010 8:47 pm by anitah355532 | 5008 views | 23 replies

anitah355532

Thanks :-)

I didn't end up having to do anything in css or on any other pages, but I did have to make some modifications to the code that Jason sent me. I don't have "add to cart buttons" or long descriptions on my product_results page. This is the code I ended up with after making the changes to my page and getting the products to line up properly in rows (if there's more than 3 items on a page):

<?php $cellCount = 0; ?>

<?php do { ?>
<?php if($cellCount == 0) { ?><tr><?php }?>
<td class="WADAResultsEntry"><div class="WADAResultThumbArea"><a href="Products_Detail.php?ProductID=<?php echo(rawurlencode($row_WADAProducts['ProductID'])); ?>" title="<?php echo $row_WADAProducts["ProductName"]; ?>"><img class="WADAResultThumb" border="0" src="Images/Upload/<?php echo $row_WADAProducts["ProductThumb"]; ?>" alt="<?php echo $row_WADAProducts["ProductName"]; ?>" /></a></div>
<div class="WADAResultInfoArea2">
<div class="WADAResultTitle">
<table width="98%" height="73" class="WADAEditButton_Table">
<tr>
<td align="left"><p><a href="Products_Detail.php?ProductID=<?php echo(rawurlencode($row_WADAProducts['ProductID'])); ?>"><?php echo $row_WADAProducts["ProductName"]; ?></a><span class="WADAResultPrice"><br />
</span></p>
<div class="WADADetailsPrice">$<?php echo number_format($row_WADAProducts["ProductPrice"],2); ?></div>
<p>
<?php
if ($row_WADAProducts["NumLeft"] > 0 || $row_WADAProducts["ProductUnlimited"] != 0) {
?>
</p>
<form action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>" method="post" id="WA_Store_Cart_1_ATC_<?php echo $row_WADAProducts["ProductID"]; ?>7">
<input type="hidden" name="WA_Store_Cart_1_ID_Add6" value="<?php echo $row_WADAProducts["ProductID"]; ?>" />
<input type="hidden" name="WA_Store_Cart_1_Quantity_Add6" value="1" size="4" style="margin-bottom:2px"/>
</form>
<?php
} else {
?>
Sold out!
<?php
}
?></td>
</tr>
</table>
<table width="92%" class="WADAEditButton_Table">
<tr>
<td align="right">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
</div>
<div class="WADAResultDescription"></div>
</div></td>
<?php $cellCount ++; ?>
<?php if($cellCount == 3) { ?></tr><?php $cellCount = 0; } ?>
<?php } while ($row_WADAProducts = mysql_fetch_assoc($WADAProducts)); ?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...