Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / search engine in custom template

search engine in custom template

Locked

Views: 1,061

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
2 May 2007, 1:31 PM
#1
xanfar avatar

xanfar

New Zenner

Join Date:
Apr 2007
Posts:
77
Plugin Contributions:
0

search engine in custom template

I'm looking to insert the Zen Cart search engine into my current site. I already have a spot for it in the upper right corner of my template:

http://www.sportsboardscentral.com/store/index.php?main_page=

I'm not sure where to pull it from or how to insert it...I could really use a hand on this one. Hopefully it's as simple as copying and pasting code but then again what is simple...really?:lamo:

2 May 2007, 2:24 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: search engine in custom template

How about even easier than that? you can just turn it on in Admin>tools>Layout Boxes Controller>search_header.php

2 May 2007, 6:28 PM
#3
xanfar avatar

xanfar

New Zenner

Join Date:
Apr 2007
Posts:
77
Plugin Contributions:
0

Re: search engine in custom template

This did work but it inserted it at the very top of the cart itself. I'm looking to place it somehow in my template. My template header has a spot in the table where I would like it to go...can I do this??

Please follow my link in my first post for an update view.
Here is part of my code (text in red where I need search engine):

<div id="pageHeader"> <table border="0" cellpadding="0" cellspacing="0" width="800" height="151"> <tr> <td rowspan="2"><img name="SBC_header_r1_c1" src="../../../../images/PNG's/SBC_header_r1_c1.gif" width="474" height="137" border="0" id="SBC_header_r1_c1" alt="" /></td> <td height="110" colspan="7"><span class="style1">Search engine here!!!! </span></td> <td><img src="file://../../../../images/PNG's/spacer.gif" width="1" height="110" border="0" alt="" /></td>
2 May 2007, 6:54 PM
#4
xanfar avatar

xanfar

New Zenner

Join Date:
Apr 2007
Posts:
77
Plugin Contributions:
0

Re: search engine in custom template

I GOT IT!!!
I used your suggestion and inserted the search bar via the Admin....I found the code and then copied and pasted where I needed it in my header table. Then went back and disabled the search in Admin again...working great...Thank You

2 May 2007, 9:15 PM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: search engine in custom template

Xanfar, You're welcome, although, right after my last post, I had to leave, so I really don't feel like I helped much. Sounds like you got it by yourself.

3 May 2007, 4:48 PM
#6
xanfar avatar

xanfar

New Zenner

Join Date:
Apr 2007
Posts:
77
Plugin Contributions:
0

Re: search engine in custom template

You helped more than you know Get Em Fast because until you mentioning how to turn the search engine on...I didn't know where to find it and I never would have found the code.

Now that I have it up and running, this brings up my next question of how to sort the results. Is it possible to sort these by category or subcategory so the categories appear between results and can I enter extra keywords for items?

Thanks again

3 May 2007, 8:42 PM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: search engine in custom template

xanfar, I might get corrected on this one, but I believe that ALL of the search engine results for the products come from the meta tags placed in each product in the Admin>categories/products. you know where to set these, right?
In each product, look for the little bio-hazard icon, to the right. If it's black-you haven't got them defined, yet. If it's orange-then, you've already defined them, but can add all you like.
Hope that's the answer you was looking for.

4 May 2007, 4:17 PM
#8
xanfar avatar

xanfar

New Zenner

Join Date:
Apr 2007
Posts:
77
Plugin Contributions:
0

Re: search engine in custom template

Thank You...That worked for adding the keywords that I needed for the search...but there wasn't anything there about modifying how the actual search results are displayed. Is there a way to do this that you know of because I haven't seen much yet about this.

Thanks again to all...