Search Results Return 2 Links for Every Product

Questions and answers about ShopSite Custom Templates

Search Results Return 2 Links for Every Product

Postby GiftSpecialists » Thu Sep 15, 2011 4:08 pm

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.
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California

Re: Search Results Return 2 Links for Every Product

Postby ShopSite Lauren » Thu Sep 15, 2011 7:03 pm

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.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Search Results Return 2 Links for Every Product

Postby GiftSpecialists » Fri Sep 16, 2011 9:51 am

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?
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California

Re: Search Results Return 2 Links for Every Product

Postby ShopSite Lauren » Fri Sep 16, 2011 10:33 am

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.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 83 guests