search results show page links.

General ShopSite user discussion
Post Reply
lordofdirt
Posts: 40
Joined: Fri May 16, 2008 8:19 am

search results show page links.

Post by lordofdirt »

Hello,

I want to get rid of the page links that show up on each product in my searches.

Here's the code I used.

<table border="0">
[-- LOOP SEARCH --]
[-- IF SEARCHPRODUCT --]
<br>
[-- END_IF --]
[-- IF SEARCHLINK --]
<br>
[-- END_IF --]
[-- SEARCHRESULT --]
[-- END_LOOP SEARCH --]
</table>

and here's a picture of the page links displayed. Look at the Red Box.
Image
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

Both the product and page links are out put by the [-- SEARCH_RESULT --] tag. In your code you have that tag always being used. What you need to do is output it in the case of a product and ignore it in the case of a page link. Something like this should work.

Code: Select all

<table border="0">
[-- LOOP SEARCH --]
[-- IF SEARCHPRODUCT --]
<br>
[-- SEARCHRESULT --]
[-- END_IF --]
[-- IF SEARCHLINK --]

[-- END_IF --]

[-- END_LOOP SEARCH --]
</table>
lordofdirt
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Post by lordofdirt »

So I tried this:

<table border="0">
[-- LOOP SEARCH --]
[-- IF SEARCHPRODUCT --]
[-- SEARCHRESULT --]
[-- END_IF --]

[-- IF SEARCHLINK --]

[-- END_IF --]
[-- END_LOOP SEARCH --]
</table>

And the page links still display...
Image
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

What do you have set for the products "Search destination"? on the edit Product Info screen? If it is moreinfo page change it to something else.
lordofdirt
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Post by lordofdirt »

I can't set a search destination in the edit product information screen. There is no option.
lordofdirt
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Post by lordofdirt »

any other options?
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

Edit the [--DEFINE LINK_TO_PAGE--] section of the template specified on the Preferences > Search Settings > Search Layout > Link Template Override: and remove all tags so you just have

[--DEFINE LINK_TO_PAGE--]

[--END_DEFINE LINK_TO_PAGE--]

Note you may want to create a special page template with just that info to use for your search link template.
lordofdirt
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Post by lordofdirt »

Thank you very much. The problem has been resolved.
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

Glad to help you.
Dan
Posts: 19
Joined: Fri May 29, 2009 6:53 pm

I'm having the same issue

Post by Dan »

I'm having the same issue. I've gone through all the steps outlined above and am still seeing the link. Any other suggestions?

lordofdirt did you resolve the issue by following these steps?

Thanks
Dan
Posts: 19
Joined: Fri May 29, 2009 6:53 pm

Only one good "Search Destination" selection

Post by Dan »

I finally got it. But here's the trick. Using shopsite pro v10, the Search Destination setting on the Edit Product Info screen must be set to "Store". Jim said to turn it to anyting but "More Info". I tried None and that takes it out of search entirely. Made creates a page not found error.

Store is the only setting that resolves this issue.
Post Reply