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
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
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:
changing the 1 to a 0 to disable searching the description ...Code:$content .= zen_draw_hidden_field('search_in_description', '1') . 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!
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
If you are using tpl_search.php also change the line:
to read:Code:$content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
Code:$content .= zen_draw_hidden_field('search_in_description', '0') . 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!
Good morning.
I changed it too and and does not work. Any other idea? What did I do wrong?
Thanks Ajeh
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!
Yes of course
www.radio-antigua.com
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:
Code:/includes/templates/template_default/sideboxes/tpl_search.php Line #14 : $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();where you see the 1, that means look in descriptions ...Code:/includes/templates/template_default/sideboxes/tpl_search_header.php Line #13 : $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
You should have a set for your templates and overrides and those should be set to 0 ... example:
if you see a 1 vs a 0 ... those need to be changed ...Code:/includes/templates/theme360/sideboxes/tpl_search_header.php Line #13 : $content .= zen_draw_hidden_field('search_in_description', '0') . 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!
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.