by ShopSite Lauren » Fri Jul 15, 2011 10:53 am
If you want a table format, you will need to use some table tags. It looks like your custom search results template starts the table, and starts the rows, but your product template does not start any cells. You will want to add <td> and </td> to the beginning and end of your search results product template. If you want three per row, you will want to add 33% wide to the td, <td width="33%">.
Next, ShopSite includes the result pages (more information page or category pages the product is assigned to) as part of your search results. Because of this, looking at your code now, your first product has one result page, so in the first row the cells would be product | link | product, then start a new row, rather than product | product | product. To completely ignore page links, you will need to create your own VAR tags. Let me see if I can give enough information below to get your templates the way they should be.
- change [-- LOOP SEARCH Page.Columns --] or [-- LOOP SEARCH 3 --] (whichever you are using) to be just [-- LOOP SEARCH --]. This will make it so that instead of ShopSite adding in the <tr></tr> tags when needed, you will need to add in those tags in your template.
- next, add [-- VAR.Count "0" --] above [-- LOOP SEARCH --]
- now add [-- VAR.Count INC --] in your search results product template
- comment out page links. That would be by doing something like the following within your [-- LOOP SEARCH --] tags in your search results template.
[-- LOOP SEARCH --]
[-- IF SEARCHLINK --]
<!-
[-- END_IF --]
[-- SEARCHRESULT --]
[-- IF SEARCHLINK --]
-->
[-- END_IF --]
[-- END_LOOP SEARCH--]
- before the [-- SEARCHRESULT --] tag you will want to add in the following tags:
[-- IF VAR.Count "0" --]<tr>[-- END_IF --]
- last, before the [-- END_LOOP SEARCH --] tag you will want to add the following tags:
[-- IF VAR.Count "3" --]</tr>[-- VAR.Count "0" --][-- END_IF --]
More information on columns in your search results can be found at the following URL:
http://www.shopsite.com/templates/cookbook/search-columns.shtml
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.