Search results issue

General ShopSite user discussion

Search results issue

Postby johnbiggscr » Wed May 04, 2011 12:06 pm

I am using a customized 3column-Search.sst for my search results on my test site and i am having issues where the page links appear in a list at the top of the page instead of underneath the product results.

Image

What I simply want is to have the link below each product and each item in the results to have its own border, but it is causing me nothing but grief today with links in the wrong place, strange empty cells appearing etc.

I have tried changing the templates to the default ones, including the original 3Column one, and for a lot of them I get exactly the same result. I do not know if its because i have set the page div width this appears in to 930 but even when i remove that setting it still has the same issue.

Note: each product is set to store in product info. There are no 'more info' screens etc.
johnbiggscr
 
Posts: 68
Joined: Mon Mar 01, 2010 12:41 pm
Location: Cedar Rapids

Re: Search results issue

Postby Jim » Wed May 04, 2011 4:26 pm

Search results are returned as the product and links to all pages the product is assigned to. So if you have the same product on 10 pages you will have one product result and 10 page link results. The product information is returned first and then the links. So if you are seeing links above the product information you probably have the links displaying outside of a table or td element.

If you post a link to your store I can look at the html and see if that is the case.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Search results issue

Postby johnbiggscr » Thu May 05, 2011 6:35 am

here it the link to the home page:
http://titandemo.titantirestore.com/index.html

It is a test site right now before we push it live to replace our existing site.

As a reminder, this effect happens even if we use the default 3Column search template, before we make any coding changes at all. It loops the searchresults and that is what comes up.
johnbiggscr
 
Posts: 68
Joined: Mon Mar 01, 2010 12:41 pm
Location: Cedar Rapids

Re: Search results issue

Postby Jim » Thu May 05, 2011 7:17 am

This is happening because the links are not in a table <td> </td>tag. Here is the html source around one of the links.
</td>
</tr>
<a href="http://titandemo.titantirestore.com/knobby-atv-tires.html#484">- Knobby</a>
<tr>
<td

so the link itself is outside of the table row and table cell. The browser doesn't know where to put it so it puts it at the top of the page.

What settings do you have on Preferences > Search Settings > Search Layout for the following fields
Search Template:
Link Template Override: checkbox
Link Template Override: template
Product Template Override: checkbox
Product Template Override: template?

When I select the 3column theme in my store I get a page with results like this
================================================================
product Image sku

product description. price
-----------------------------------------------------------------------------------
Result pages link
=======================================================================
product Image sku

product description. price
-----------------------------------------------------------------------------------
Result pages link

So the theme itself is working.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Search results issue

Postby johnbiggscr » Thu May 05, 2011 7:24 am

Search Template: 3Column-Select.sst
Link Template Override: checkbox: Ticked
Link Template Override: template: search_link
Product Template Override: checkbox: Ticked
Product Template Override: template: search_product
johnbiggscr
 
Posts: 68
Joined: Mon Mar 01, 2010 12:41 pm
Location: Cedar Rapids

Re: Search results issue

Postby Jim » Thu May 05, 2011 7:33 am

Try setting the
Link Template Override: template: to BasicPage-Link.sst
and
Product Template Override: template: BasicProduct-Search.sst

Those are the default templates for the 3Column search feature.

The theme templates are designed to work as a set with options being configured in one template and used in another template. If you change out one of the templates those options may not be configured so the display may not be as designed.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Search results issue

Postby johnbiggscr » Thu May 05, 2011 8:24 am

That seems to have been a step in the right direction. I just need to do some formatting and its there.

Thank you.
johnbiggscr
 
Posts: 68
Joined: Mon Mar 01, 2010 12:41 pm
Location: Cedar Rapids


Return to User Forum

Who is online

Users browsing this forum: No registered users and 95 guests