You are here:  » search results display

Support Forum



search results display

Submitted by wilkins on Thu, 2006-12-07 08:53 in

Hi

Can the search results be displayed in the same way as the featured products on the front page ie across rather than down.

Thanks

brent

Submitted by support on Thu, 2006-12-07 09:46

Hi Brent,

You can certainly do this; but it would require substantial modification to html/searchresults.php.

However, as a shortcut; you could always start with a copy of html/featured.php (saved as searchresults.php in the same directory) and then change the following line:

<?php foreach($featured["products"] as $product): ?>

to:

<?php foreach($searchresults["products"] as $product): ?>

You will also want to get rid of the HTML at the top that displays the "Featured Products" banner.

That should give you a starter for 10; and you might then want to incorporate the description (using $product["description"] somehow) as this is not part of the featured products display - although the data is there - and perhaps incorporate the changes shown in the following thread for displaying featured products in rows...

http://www.pricetapestry.com/node/284

Hope this helps!
Cheers,
David.