Results 1 to 9 of 9
  1. #1
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Advanced Search Question

    In Advanced Search>Limit To Category>All Categories it brings up a list of all the manufacturers followed by a list of categories. How can I change this to eliminate the manufacturers names? I already have them under All Manufacturers. Don't need them twice.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Advanced Search Question

    So, you're asking how to randomly remove certain category names from the list?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: Advanced Search Question

    Sometimes my links don't work, but let's try it.

    http://designerperfumesnob.authsafe....eywords%20here

    I'm saying that what should be a drop down box limited to categories is showing manufacturers and categories way down on the bottom because I have a lot of manufacturers. I want to delete the manufacturers from this list as they don't belong there.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Advanced Search Question

    Am I correct in understanding that what YOU are calling "manufacturers" in this context are REALLY "subcategories"?
    And that what you're REALLY asking is for a way to limit the dropdown to only show "top-level" categories, and never any subcategories?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: Advanced Search Question

    Quote Originally Posted by DrByte View Post
    Am I correct in understanding that what YOU are calling "manufacturers" in this context are REALLY "subcategories"?
    And that what you're REALLY asking is for a way to limit the dropdown to only show "top-level" categories, and never any subcategories?
    Can you see my site? If you can and you look at the drop down for Designers you will see all the manufacturers names listed. Those are the same names you will see in the All Categories drop down even WITHOUT sub-categories enabled. My first category is Women's Perfume. Wouldn't the sub-category be a product and not a manufacturer?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Advanced Search Question

    Quote Originally Posted by traytray View Post
    look at the drop down for Designers you will see all the manufacturers names listed.
    Right.
    Quote Originally Posted by traytray View Post
    Those are the same names you will see in the All Categories drop down
    Kinda, ya.
    Quote Originally Posted by traytray View Post
    even WITHOUT sub-categories enabled.
    If you're referring to the "checkbox" below the Categories dropdown, you're completely misunderstanding that checkbox. That checkbox only asks the visitor whether the search that happens WHEN THEY CLICK SUBMIT should include subcategories in the search or not. It has nothing to do with the stuff shown on that same screen BEFORE clicking the Submit/search button.
    Quote Originally Posted by traytray View Post
    My first category is Women's Perfume. Wouldn't the sub-category be a product and not a manufacturer?
    No. The sub-category is exactly that: a sub-category. If it coincidentally happens to have the same name as one of your designers/manufacturers, that's simply a byproduct of how you have named your subcategories.

    I think you're getting yourself (or at least *me* and your customers anyway) confused because of the way you've named your subcategories.

    Eventually I think you'll finally confirm that what you want listed in that pulldown is just the top-level categories ... the same as the top-level categories that are displayed in the Categories sidebox on the left navigation of your site, right?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: Advanced Search Question

    OK, I understand the sub-category checkbox now. Yes, I do want top-level categories only. Is it possible?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Advanced Search Question

    You'll have to delete code from core files:

    Well, sort of. Add the // as shown here, to disable the core code that builds the child subcategory entries. And pray that it doesn't break anything elsewhere in your site.

    /includes/functions/functions_categories.php
    around line 142:
    Code:
          if ($categories->fields['categories_id'] != $parent_id) {
          //  $categories_array = zen_get_categories($categories_array, $categories->fields['categories_id'], $indent . '  ', '1');
          }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: Advanced Search Question

    You've scared me sufficiently. I guess I'll leave it as is. Thanks for working with me.

 

 

Similar Threads

  1. v154 "Fancy" Advanced Search Question
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Jun 2015, 11:39 PM
  2. Advanced Search Question (limit to category box)
    By gazag in forum Templates, Stylesheets, Page Layout
    Replies: 61
    Last Post: 8 May 2013, 01:29 AM
  3. Advanced Search question
    By JohnBoyCR in forum General Questions
    Replies: 3
    Last Post: 25 Jul 2010, 07:15 PM
  4. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  5. Remove 'Search by Date Added' field from advanced search page?
    By gaffettape in forum General Questions
    Replies: 7
    Last Post: 24 Jan 2010, 03:34 PM

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