Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 62
  1. #41
    Join Date
    Jun 2011
    Posts
    169
    Plugin Contributions
    0

    Default Re: Advanced Search Question (limit to category box)

    Quote Originally Posted by Ajeh View Post
    Look at your override file:
    /home2/limelih7/public_html/includes/templates/your_template_dir/templates/tpl_advanced_search_default.php

    and find the line that contains this:
    zen_draw_pull_down_menu

    What does the code in the 5 lines before it and 5 lines after it read?

    My file has
    Code:
    <br class="clearBoth" />
    </fieldset>
    
    <fieldset class="floatingBox back">
        <legend><?php echo ENTRY_CATEGORIES; ?></legend>
        <div class="floatLeft"><?php echo zen_draw_pull_down_menu('categories_id', zen_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)), '0' ,'', '1'), $sData['categories_id']); ?></div>
    <?php echo zen_draw_checkbox_field('inc_subcat', '1', $sData['inc_subcat'], 'id="inc-subcat"'); ?><label class="checkboxLabel" for="inc-subcat"><?php echo ENTRY_INCLUDE_SUBCATEGORIES; ?></label>
    <br class="clearBoth" />
    </fieldset>
    
    <fieldset class="floatingBox forward">
        <legend><?php echo ENTRY_MANUFACTURERS; ?></legend>
        <?php echo zen_draw_pull_down_menu('manufacturers_id', zen_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)), PRODUCTS_MANUFACTURERS_STATUS), $sData['manufacturers_id']); ?>
    <br class="clearBoth" />
    </fieldset>
    <br class="clearBoth" />

  2. #42
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,681
    Plugin Contributions
    6

    Default Re: Advanced Search Question (limit to category box)

    The contents of your template override does not look like it is the same as DivaVocals code ...

    I would think about trying to reload the code to see if something has been placed in the wrong place ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #43
    Join Date
    Jun 2011
    Posts
    169
    Plugin Contributions
    0

    Default Re: Advanced Search Question (limit to category box)

    Quote Originally Posted by Ajeh View Post
    The contents of your template override does not look like it is the same as DivaVocals code ...

    I would think about trying to reload the code to see if something has been placed in the wrong place ...
    I tried re uploading the one from a new download and still no difference so i just removed that box and the manufacturing box off the Advanced Search page!

    That solves the problem for me!

    Thanks for you help!

  4. #44
    Join Date
    Dec 2008
    Location
    Rimini, Italy
    Posts
    54
    Plugin Contributions
    0

    Default Re: Advanced Search Question (limit to category box)

    I think I found where the problem is (hope somebody can tell us WHAT the problem is :-) )

    in /myshop/includes/functions/html_output.php , in the source of zen_draw_pull_down_menu() function

    there's the following statement:

    PHP Code:
    if (empty($default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) ) $default stripslashes($GLOBALS[$name]); 
    So, in advanced_search page, the categories pull down menu is called with a default set to 0 (zero) but the previous line of code, subsitute it with the value of $GLOBALS[$name] , actually $GLOBALS[categories_id]. This global variable contains categories_id of last category in list.

    Is there any good reason why $GLOBALS[categories_id] should contain that value of categories_id?

    Can we eliminate that code? Or is it necessary for some other cases of pull down menu?

  5. #45
    Join Date
    Dec 2008
    Location
    Rimini, Italy
    Posts
    54
    Plugin Contributions
    0

    Default Re: Advanced Search Question (limit to category box)

    I temporarily solved this issue by modifying the following line from ../includes/functions/html_output.php from:

    PHP Code:
    if (empty($default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) ) $default stripslashes($GLOBALS[$name]); 
    to

    PHP Code:
    if ( ($name != 'categories_id') && empty($default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) ) $default stripslashes($GLOBALS[$name]); 
    But please tell me if that solution can break something all over the shop.

  6. #46
    Join Date
    Oct 2012
    Posts
    21
    Plugin Contributions
    0

    Default Re: Advanced Search Question (limit to category box)

    did anyone ever find a workaround for this? I am having this issue right now....

    www . scarletburn . com (without the spaces)

  7. #47
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    6,976
    Plugin Contributions
    27

    Default Re: Advanced Search Question (limit to category box)

    Quote Originally Posted by satrina View Post
    did anyone ever find a workaround for this? I am having this issue right now....

    www . scarletburn . com (without the spaces)
    Which "this" are you referring to.. a few variations of the original issue have been posted in this thread..
    My Site
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #48
    Join Date
    Oct 2012
    Posts
    21
    Plugin Contributions
    0

    Default Re: Advanced Search Question (limit to category box)

    my last category shows up as the default in the advanced search categories box

  9. #49
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    6,976
    Plugin Contributions
    27

    Default Re: Advanced Search Question (limit to category box)

    Quote Originally Posted by satrina View Post
    my last category shows up as the default in the advanced search categories box
    FYI, it's MORE helpful for the community if you post DETAILS (not one liners) about the issues you are having and the link to your site.. Saying "It's not working" or "I am having the same problem" without any details doesn't give folks much to go on..

    That said it doesn't sound like your issue is related to original issue posted in this thread, but without details??? **shrug** Don't make folks guess what the issue is when you provide the link to your site. Unless there is some glaring OBVIOUS error message we are going to see, it would help if you gave us details on what the issue is you are having. We have no way of understanding the issues unless you provide details of what it is we are going to see and what it is you think we should see..
    My Site
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #50
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    6,976
    Plugin Contributions
    27

    Default Re: Advanced Search Question (limit to category box)

    Quote Originally Posted by moosesoom View Post
    I temporarily solved this issue by modifying the following line from ../includes/functions/html_output.php from:

    PHP Code:
    if (empty($default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) ) $default stripslashes($GLOBALS[$name]); 
    to

    PHP Code:
    if ( ($name != 'categories_id') && empty($default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) ) $default stripslashes($GLOBALS[$name]); 
    But please tell me if that solution can break something all over the shop.
    I hate to resurrect such an old post, but in testing a Zen Cart v1.5.1 update to the hideCategories add-on, I was FINALLY able to replicate the issue reported by the creator of this post.. For whatever reason, this issue ONLY occurs when the hideCategories add-on is installed.. I tried the solution posted a while back (see above) and it does indeed resolve the issue.. What I need to know before I claim victoru and add this to the hideCategories fileset is what will this break??

    Calling out to Ajeh as she was the one trying to help resolve/troubleshoot this before..
    My Site
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 5 of 7 FirstFirst ... 34567 LastLast

Similar Threads

  1. Width of "Limit to Manufacturer" under advanced search
    By elena1707 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 May 2011, 11:20 PM
  2. Advanced search Limit the manufacturers list
    By ladyink in forum General Questions
    Replies: 1
    Last Post: 9 Oct 2009, 04:10 PM
  3. Replies: 0
    Last Post: 27 May 2009, 06:59 PM
  4. Questions about "Limit to Manufacturer" in Advanced Search.
    By marshall in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Jun 2007, 05:05 AM
  5. "Limit to Category" in Advanced Search defaults to subcateogry
    By lukemcr in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Mar 2007, 04:26 PM

Bookmarks

Posting Permissions

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