Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2013
    Location
    Malaga, Spain
    Posts
    9
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:
    Code:
      $content .= zen_draw_hidden_field('search_in_description', '1') . 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!

  3. #3
    Join Date
    Apr 2013
    Location
    Malaga, Spain
    Posts
    9
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: search of the home page

    If you are using tpl_search.php also change the line:
    Code:
      $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
    to read:
    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!

  5. #5
    Join Date
    Apr 2013
    Location
    Malaga, Spain
    Posts
    9
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  7. #7
    Join Date
    Apr 2013
    Location
    Malaga, Spain
    Posts
    9
    Plugin Contributions
    0

    Default Re: search of the home page

    Yes of course
    www.radio-antigua.com

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:

    Code:
    /includes/templates/template_default/sideboxes/tpl_search.php
    
    Line #14 : $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
    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();
    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:
    Code:
    /includes/templates/theme360/sideboxes/tpl_search_header.php
    
    Line #13 : $content .= zen_draw_hidden_field('search_in_description', '0') . 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!

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

    Default 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.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 5 Sep 2014, 01:05 PM
  2. How to make the HOME page (index) different than the STORE page (main page)?
    By Dianna668 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 27 Apr 2011, 05:29 PM
  3. Placing search box in middle of home page
    By plumbingdeals in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Oct 2008, 12:33 AM
  4. My Home Page is not the original home page- Help!
    By Pet Herbal Remedies in forum General Questions
    Replies: 4
    Last Post: 22 Aug 2008, 11:15 PM
  5. Keep search on top of the page and remove the search on the side of the page
    By qm360 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Jul 2007, 12:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg