Search Results - How to Remove Link?

General ShopSite user discussion

Search Results - How to Remove Link?

Postby MarkB » Sat Sep 09, 2006 1:33 pm

This may be something simple I'm overlooking, but how do I tell ShopSite not to include a link to the product on the search page?

I created a custom search template and custom product template. Everything works as expected within the search results, except ShopSite includes a link to the product. I already have this link setup in my product template, so I do not need the "extra" one.

Here is my base code for displaying the search results:

[-- VAR.COL 4 --]

<TABLE CELLSPACING=20>
[-- LOOP SEARCH VAR.COL --]
<td align=center>
[-- SEARCHRESULT --]
</td>
[-- END_LOOP SEARCH --]
</TABLE>

Maybe I need to break down "SEARCHRESULT" into separate variables, but I don't know what individual variables are available for search results (never found anything in the TAG specs sheet).

Maybe I'm missing a DEFINE somewhere that sets this up??

Thank-you,

Mark
MarkB
 
Posts: 31
Joined: Sat Sep 09, 2006 1:24 pm

Postby Jim » Sat Sep 09, 2006 1:55 pm

The Product search destination will have something to do with how the link is displayed. If you have the search destination set to MoreInfo then the Moreinfo link will always be displayed and the is no way to remove it. If you have the search destination set to Store then you can prevent the link from displaying by creating the search Link Template Override: so that has the define for the link but doesn't actually output the link, i.e.
[--DEFINE LINK_TO_PAGE--]
<!-- no link html here -->
[--END_DEFINE LINK_TO_PAGE--]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby MarkB » Sat Sep 09, 2006 2:57 pm

I did have my search destination set to STORE, but I didn't have the correct Search Link Override setup. I created the override as suggested and everything is working now.

Thank-you!

Mark
MarkB
 
Posts: 31
Joined: Sat Sep 09, 2006 1:24 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 115 guests

cron