![]() |
How do you edit the search result page layout?
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%"> |
Re: How do you edit the search result page layout?
The easiest way is to create a custom products template. So do this, replace this:
{include file="customer/main/products.tpl" products=$products} with this: {include file="customer/main/products-search.tpl" products=$products} Then create a copy of products.tpl, rename it products-search.tpl and edit however you want. |
Re: How do you edit the search result page layout?
That's a good suggestion, why didn't I think of that myself. Will work on it, thanks balinor :D/
|
Re: How do you edit the search result page layout?
Does anyone know how to link to the product's main category from the search result page? It seems impossible to do but nothing is impossible, right? I tried:
Code:
<a href="home.php?cat={$current_category.parentid}">test1</a> |
Re: How do you edit the search result page layout?
Nobody knows?
|
Re: How do you edit the search result page layout?
You can use webmaster mode to see what smarty variables are available to you on that page load. If there is no variable for the data you seek, then php has to be updated to provide it. This post gives more detail about using webmaster mode to find available variables.
|
All times are GMT -8. The time now is 05:42 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.