Search Results Page formatting

General ShopSite user discussion

Search Results Page formatting

Postby Vince Salese » Thu Mar 24, 2005 10:36 am

We use the following include for our page header and a similar one for the
page footer.

<!--#include virtual="/pages/newnavbar.html"-->

The header & footer are not being displayed on the search results page.
How can I correct this?

Thanks
vince@ahoycaptain.com
Vince Salese
 

Re: Search Results Page formatting

Postby loren_d_c » Thu Mar 24, 2005 10:54 am

That is a server-side include (SSI), which a webserver knows to look for
based on the file extension of the HTML file that it is in. This works
great for HTML files, but you cannot use server-side includes on a
dynamic cgi screen, such as the search results and shopping cart screens.

So if you don't want to actually put the contents of these files in the
Preferences -> Page Header and Footer fields, then you will probably
have to include the contents in the search template itself (if you have
v7.1 or newer that has search templates) where the [-- HEADER --] and
[-- FOOTER --] tags currently are.

-Loren


Vince Salese wrote:
We use the following include for our page header and a similar one for the
page footer.

!--#include virtual="/pages/newnavbar.html"--

The header & footer are not being displayed on the search results page.
How can I correct this?

Thanks
vince@ahoycaptain.com



loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Search Results Page formatting

Postby Vince Salese » Thu Mar 24, 2005 12:28 pm

Hi Loren,

Thank, I was hoping to avoid that... but oh well.

Now I'm still not happy with the search results page.

Please go to http://www.ahoycaptain.com and search on "after mast". The
results that are returned are way beyond what I want the customer to
receive.

There are six products that could/should be returned. There are five
sub-products to the main product "After Mast Stands". The main product has a
more information page while the sub-products do not. The main product "After
Mast Stands" is also a sub-product of several other related products. What
the search page is returning is all the pages that the After Mast main
product is a sub-product of. I just want it to return the More Information
page for the main "After Mast Stand" product. No matter what setting I put
in the Search Make Page for both the main product or the sub-product, I get
the same results.

Any ideas?

vince@ahoycaptain.com

"Loren" <loren_d_c@yahoo.com> wrote in message
news:d1urbm$i3d$1@eval.shopsite.com...
That is a server-side include (SSI), which a webserver knows to look for
based on the file extension of the HTML file that it is in. This works
great for HTML files, but you cannot use server-side includes on a
dynamic cgi screen, such as the search results and shopping cart screens.

So if you don't want to actually put the contents of these files in the
Preferences -> Page Header and Footer fields, then you will probably
have to include the contents in the search template itself (if you have
v7.1 or newer that has search templates) where the [-- HEADER --] and
[-- FOOTER --] tags currently are.

-Loren


Vince Salese wrote:
We use the following include for our page header and a similar one for
the
page footer.

!--#include virtual="/pages/newnavbar.html"--

The header & footer are not being displayed on the search results page.
How can I correct this?

Thanks
vince@ahoycaptain.com



Vince Salese
 

Re: Search Results Page formatting

Postby Jim » Thu Mar 24, 2005 4:27 pm

You can create a custom product template for search results that will
not display subproducts. That way only the main product will display.

Jim

Vince Salese wrote:
Hi Loren,

Thank, I was hoping to avoid that... but oh well.

Now I'm still not happy with the search results page.

Please go to http://www.ahoycaptain.com and search on "after mast". The
results that are returned are way beyond what I want the customer to
receive.

There are six products that could/should be returned. There are five
sub-products to the main product "After Mast Stands". The main product has a
more information page while the sub-products do not. The main product "After
Mast Stands" is also a sub-product of several other related products. What
the search page is returning is all the pages that the After Mast main
product is a sub-product of. I just want it to return the More Information
page for the main "After Mast Stand" product. No matter what setting I put
in the Search Make Page for both the main product or the sub-product, I get
the same results.

Any ideas?

vince@ahoycaptain.com

"Loren" <loren_d_c@yahoo.com> wrote in message
news:d1urbm$i3d$1@eval.shopsite.com...

That is a server-side include (SSI), which a webserver knows to look for
based on the file extension of the HTML file that it is in. This works
great for HTML files, but you cannot use server-side includes on a
dynamic cgi screen, such as the search results and shopping cart screens.

So if you don't want to actually put the contents of these files in the
Preferences -> Page Header and Footer fields, then you will probably
have to include the contents in the search template itself (if you have
v7.1 or newer that has search templates) where the [-- HEADER --] and
[-- FOOTER --] tags currently are.

-Loren


Vince Salese wrote:

We use the following include for our page header and a similar one for

the

page footer.

!--#include virtual="/pages/newnavbar.html"--

The header & footer are not being displayed on the search results page.
How can I correct this?

Thanks
vince@ahoycaptain.com






Jim
 


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 64 guests

cron