Forums / Templates, Stylesheets, Page Layout / search of the home page

search of the home page

Started by josecaparros on 9 Apr 2013, 8:12 AM · Views: 691

Results 1 to 9 of 9
9 Apr 2013, 8:12 AM
#1
josecaparros avatar

josecaparros

New Zenner

Join Date:
Apr 2013
Location:
Malaga, Spain
Posts:
9
Plugin Contributions:
0

search of the home page

Good morning
First at all escuse me for my english
I would like to know a question about the search of the home page. I want to Search titles only and not in product descriptions, as can be done in the advanced search.

Gracias. Thanks

9 Apr 2013, 1:34 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: search of the home page

In the template file for:
/includes/templates/template_default/sideboxes/tpl_search_header.php

you can copy that to your templates and overrides, if not already there, and edit the line:

  $content .= zen_draw_hidden_field('search_in_description', '[B]1[/B]') . zen_hide_session_id();

changing the 1 to a 0 to disable searching the description ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Apr 2013, 8:21 AM
#3
josecaparros avatar

josecaparros

New Zenner

Join Date:
Apr 2013
Location:
Malaga, Spain
Posts:
9
Plugin Contributions:
0

Re: search of the home page

Goog morning.
Thanks for the quick response.In my template did not exist the tpl_search_header.php only tpl_search.php. First al all I copied tpl_search_header.php in my template and then I changed the two files(changing the 1 to a 0 to disable searching the description ... ). But the search is still looking for description.
What did I do wrong?

Thanks

10 Apr 2013, 12:26 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: search of the home page

If you are using tpl_search.php also change the line:

  $content .= zen_draw_hidden_field('search_in_description', '[B]1[/B]') . zen_hide_session_id();

to read:

  $content .= zen_draw_hidden_field('search_in_description', '[B]0[/B]') . zen_hide_session_id();

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Apr 2013, 8:01 AM
#5
josecaparros avatar

josecaparros

New Zenner

Join Date:
Apr 2013
Location:
Malaga, Spain
Posts:
9
Plugin Contributions:
0

Re: search of the home page

Good morning.
I changed it too and and does not work. Any other idea? What did I do wrong?
Thanks Ajeh

11 Apr 2013, 12:15 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: search of the home page

Have you an URL that we could perhaps peek at?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Apr 2013, 7:55 AM
#7
josecaparros avatar

josecaparros

New Zenner

Join Date:
Apr 2013
Location:
Malaga, Spain
Posts:
9
Plugin Contributions:
0

Re: search of the home page

Yes of course
www.radio-antigua.com

12 Apr 2013, 1:05 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: search of the home page

Looking at your site in the View Source, I still see it set to 1 ...

Go to your Admin and in the Tools ... Developers Tool Kit ... do a search in the bottom input box for:
search_in_description

A lot of files will come up but you should be able to see things like this for the default files, among others:

/includes/templates/template_default/sideboxes/tpl_search.php

Line #14 : $content .= zen_draw_hidden_field('search_in_description', '[B]1[/B]') . zen_hide_session_id(); 
/includes/templates/template_default/sideboxes/tpl_search_header.php

Line #13 : $content .= zen_draw_hidden_field('search_in_description', '[B]1[/B]') . zen_hide_session_id(); 

where you see the 1, that means look in descriptions ...

You should have a set for your templates and overrides and those should be set to 0 ... example:

/includes/templates/theme360/sideboxes/tpl_search_header.php

Line #13 : $content .= zen_draw_hidden_field('search_in_description', '[B]0[/B]') . zen_hide_session_id(); 

if you see a 1 vs a 0 ... those need to be changed ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

15 Apr 2013, 8:09 AM
#9
josecaparros avatar

josecaparros

New Zenner

Join Date:
Apr 2013
Location:
Malaga, Spain
Posts:
9
Plugin Contributions:
0

Re: search of the home page

Thank you very much.
IT.s Ok. he understood what I had to do from the beginning but I just thought it was in the template 360.

Thanks a lot.