Page 1 of 1

Search Results Return 2 Links for Every Product

PostPosted: Thu Sep 15, 2011 4:08 pm
by GiftSpecialists
I am trying to build a custom search template, but I cannot get past the point that for every product, SS adds the link I want it to add, plus another text link.

THE GOAL: I do NOT want any Pages indexed for search - I ONLY want Products indexed for search.

http://www.beeronthewall.com/cgi-bin/sc/productsearch.cgi?search_field=shirt

This is what my Search template looks like (my workaround), and it looks OK to the shopper, but the html still shows a commented out line for each product:

<table width="90%" align="center" cellspacing="5">
[-- LOOP SEARCH 6 --]
[-- IF SEARCHLINK --]
<!--
[-- END_IF --]
<td class="page" valign=bottom align=center>
[-- SEARCHRESULT --]
</td>
[-- IF SEARCHLINK --]
-->
[-- END_IF --]
[-- END_LOOP SEARCH --]
</table>

I have 2 override templates: The Product template is displaying the link to the MoreInfo page correctly. However, based on a previous post, I tried creating a Page Override template that only has a comment (see below), but it is not recognizing it. It still adds a comment line no matter how I try to slioce it up...

Maybe I just have a setting misconfigured? Maybe I am way off on this - it still seems a bit confusing to me. Or is it a SS issue that there is no way around?

Any help would be greatlt appreciated. Thanks.

Re: Search Results Return 2 Links for Every Product

PostPosted: Thu Sep 15, 2011 7:03 pm
by ShopSite Lauren
What does the code in your page override template look like? ShopSite does require some code in the page template override. I would suggest trying something like:

[-- DEFINE LINK_TO_PAGE --]
[-- PAGE.Name REMOVE_HTML --] - [-- PAGE.FileName --]
[-- END_DEFINE LINK_TO_PAGE --]

You don't need comment tags around this because you are adding comment tags in your search results template.

Re: Search Results Return 2 Links for Every Product

PostPosted: Fri Sep 16, 2011 9:51 am
by GiftSpecialists
Thanks Lauren,

The search results now look like i want them to. It still generates the comments for each product in the html - is this something that I have to live with?

Re: Search Results Return 2 Links for Every Product

PostPosted: Fri Sep 16, 2011 10:33 am
by ShopSite Lauren
Yes you will just have to live with the comments in the code, but search result pages are not indexed by search engines, so the amount of comments in the code shouldn't affect anything.