search results show page links.

General ShopSite user discussion

search results show page links.

Postby lordofdirt » Mon Mar 09, 2009 9:57 am

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
lordofdirt
 
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Postby Jim » Mon Mar 09, 2009 10:09 am

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>
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby lordofdirt » Mon Mar 09, 2009 10:24 am

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
lordofdirt
 
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Postby Jim » Mon Mar 09, 2009 10:36 am

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby lordofdirt » Mon Mar 09, 2009 11:11 am

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

Postby lordofdirt » Mon Mar 09, 2009 12:20 pm

any other options?
lordofdirt
 
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Postby Jim » Mon Mar 09, 2009 12:50 pm

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby lordofdirt » Mon Mar 09, 2009 1:02 pm

Thank you very much. The problem has been resolved.
lordofdirt
 
Posts: 40
Joined: Fri May 16, 2008 8:19 am

Postby Jim » Mon Mar 09, 2009 1:07 pm

Glad to help you.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

I'm having the same issue

Postby Dan » Fri May 29, 2009 8:25 pm

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

Postby Dan » Fri May 29, 2009 10:03 pm

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.
Dan
 
Posts: 19
Joined: Fri May 29, 2009 6:53 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 11 guests