Page 1 of 1

gradient1 search template - removing result pages

PostPosted: Thu Feb 04, 2010 4:59 pm
by psldesigns
Is there a way to remove the result pages from under the products: here is the site: http://65.18.174.106/prints_charming.htm do a search for flowers. I have copied and created an editable version of the template, commenting out the things i don't want to see, but can't seem to find how to control the "result pages". Thanks.

PostPosted: Thu Feb 04, 2010 5:13 pm
by Jim
Is it just the text "Result Pages" that you want to eliminate or the links to the pages too?

PostPosted: Fri Feb 05, 2010 6:33 am
by psldesigns
both the text AND the links. :o) Thanks.

PostPosted: Fri Feb 05, 2010 9:45 am
by Jim
You will need to make a couple of changes.

First create a page template that just has
Code: Select all
[--DEFINE LINK_TO_PAGE--]
# don't display a link
[--END_DEFINE LINK_TO_PAGE--]


Next edit make a copy of the gradient1-search.sst template by using the Copy ShopSite template button on the Merchandising > Custom Templates > Advanced section.
You can give it what ever name you want.
Edit that template and find the tag
Code: Select all
 [--Store.SearchResultPage --]

at the very beginning of the line that it is on put a # which will comment out the line.

Now under Preferences > Search Settings > Search layout change the Search Template: to be the one you created by copying the gradient search template.

and change the Link Template Override: template to be the page template you created with the blank define link_to_page secton and check the box to use that template.

Now when you search you will not see the text or the page links.

NOTE: if you have products that have the search destination set to "MoreInfo" those links will still appear and there is no way to remove them. So make sure the search destination of products is set to "Store" for all products.

PostPosted: Fri Feb 05, 2010 10:46 am
by psldesigns
Exactly what i needed, thanks so much for the help!