Hi everyone,
I want to edit the layout of the search result page. Right now, it shows the same layout for the found products as I am using on the category pages but this is not wanted. Any idea how to edit this behaviour or how to build a custom layout for just the search result page?
I know skin1/customer/main/search_result.tpl controls the page in question but there is no way to edit its layout. All the relevant code I see is:
Code:
<table cellpadding="0" cellspacing="0" width="100%">
{if $sort_fields}
<tr>
<td>{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="`$navigation_script`&"}
<br /><br /><br />
</td>
</tr>
{/if}
<tr>
<td>
{include file="customer/main/navigation.tpl"}
{include file="customer/main/products.tpl" products=$products} <-- this needs custom code, I think..
<br />{include file="customer/main/navigation.tpl"}
</td>
</tr>
</table>
The bold part is what controls the current layout, I think. Anyone knows how to edit this part and make it show the relevant results in a way I want to? Thanks for any input.
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9
www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2
Sorry for the weird user name, I registered it by mistake