Thread: hideCategories

Results 1 to 10 of 487

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: hideCategories

    I've already tried that. Thanks though. The live site is http://d132s.southshorepizza.net The test site is http://onlineorder.sshorepizza.net Like I stated the search keyword doesn't work for any products. Regardless of hidden or not I get 0 results on the test site. Almost like the code is broken. However when I put the original zen-cart v 1.5.1 header_php.php file back on the test site I still cannot get any results. Perhaps if your search works you could post the entire file? Maybe that could help resolve it. I'm stumped since neither file works.

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: hideCategories

    Quote Originally Posted by southshorepizza View Post
    I've already tried that. Thanks though. The live site is http://d132s.southshorepizza.net The test site is http://onlineorder.sshorepizza.net Like I stated the search keyword doesn't work for any products. Regardless of hidden or not I get 0 results on the test site. Almost like the code is broken. However when I put the original zen-cart v 1.5.1 header_php.php file back on the test site I still cannot get any results. Perhaps if your search works you could post the entire file? Maybe that could help resolve it. I'm stumped since neither file works.
    Re-read my post above..
    My Site - Zen Cart & WordPress integration specialist
    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.

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: hideCategories

    Quote Originally Posted by southshorepizza View Post
    I've already tried that. Thanks though. The live site is http://d132s.southshorepizza.net The test site is http://onlineorder.sshorepizza.net Like I stated the search keyword doesn't work for any products. Regardless of hidden or not I get 0 results on the test site. Almost like the code is broken. However when I put the original zen-cart v 1.5.1 header_php.php file back on the test site I still cannot get any results. Perhaps if your search works you could post the entire file? Maybe that could help resolve it. I'm stumped since neither file works.
    Gonnna post my reply to you in the other thread you started on this same topic here so the information is available to all..

    Quote Originally Posted by DivaVocals View Post
    The readme and the SQL file for hideCategories VERY clearly says that the SQL file does nothing but create ONE table that is used by ONLY by hideCategories.

    As I reported on the hideCategories support thread, the modifications to the includes/pages/advanced_search_results/header.php.php file included in hideCategories Version: 2.1 do not work and causes the issue the OP is reporting (the search doesn't find ANYTHING). hideCategories Version: 2.1 was the version where this file is introduced. (there were no other changes) I will NOT be attempting to fix this as I'm not entirely sure why it worked for Zen Cart v1.3.9, and does not work with Zen Cart v1.5.x. It is addmittedly over my head to fix, which is why I won't attempt it. I will in fact exclude this file from the upcoming version of hideCategories I will be submitting (updated for Zen Cart v1.5.1)

    My advice to the OP mimics yours.. Get the test site to match the live site..

    After he does that, THEN install hideCategories WITHOUT the modified includes/pages/advanced_search_results/header.php.php file. (suggest installing hideCategories - Version: 2.0)
    My Site - Zen Cart & WordPress integration specialist
    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.

  4. #4
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: hideCategories

    So the file that was breaking the search engine was located at
    includes/templates/your_template/templates/tpl_advanced_search_default.php

    The one I kept being told was the problem was
    includes/modules/pages/advanced_search_result/header_php.php

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: hideCategories

    Quote Originally Posted by southshorepizza View Post
    So the file that was breaking the search engine was located at
    includes/templates/your_template/templates/tpl_advanced_search_default.php

    The one I kept being told was the problem was
    includes/modules/pages/advanced_search_result/header_php.php
    It is in fact BOTH files that are the problem.. For different reasons as the edits to these files serve a different purpose..

    The issue with the includes/templates/your_template/templates/tpl_advanced_search_default.php is due to a conflict with the categories sidebox which makes the categories dropdown default to the last category in the list versus "All Categories" as it should. (which is why you get no search results)


    Make the following change to includes/templates/your_template/templates/tpl_advanced_search_default.php
    Code:
    //  Begin hideCategories code
        list($nada, $mycpath)= split('=', $box_categories_array[$i]['path']);
        $mycid = split('_', $mycpath);
       $cat_to_check  = array_pop($mycid);
        $hide_status = $db->Execute("select visibility_status 
                        FROM " . TABLE_HIDE_CATEGORIES . "
                        WHERE categories_id = " . $cat_to_check  . "
                        LIMIT 1");
        if ($hide_status->fields['visibility_status'] < 1) {
    //  End hideCategories code
    The code in the includes/modules/pages/advanced_search_result/header_php.php does not work at all.. Still don't know why, and unless someone else has the answer for how to get this to work, I will not be including it in the next hideCategories release..
    Last edited by DivaVocals; 8 May 2013 at 07:05 PM.
    My Site - Zen Cart & WordPress integration specialist
    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.

  6. #6
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: hideCategories

    I have the site up and running fine. I used the original header_php.php and the tpl_advanced_search_default.php I did not upload. The search feature works fine. I am not using the hidden direct link only feature so this works great for me as is. I just wanted to post the problem I found in case anyone else might happen to run into this and search for an answer.

    Thank you very much for all your help on this though!!! It was much appreciated!

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: hideCategories

    Quote Originally Posted by southshorepizza View Post
    I have the site up and running fine. I used the original header_php.php and the tpl_advanced_search_default.php I did not upload. The search feature works fine. I am not using the hidden direct link only feature so this works great for me as is. I just wanted to post the problem I found in case anyone else might happen to run into this and search for an answer.

    Thank you very much for all your help on this though!!! It was much appreciated!
    As long as you understand that by NOT using the tpl_advanced_search_default.php your hidden categories are seen in the categories dropdown on the Advanced Search page..
    Last edited by DivaVocals; 8 May 2013 at 07:30 PM.
    My Site - Zen Cart & WordPress integration specialist
    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. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: hideCategories

    Made some minor changes below it is the sideboxes/tpl_categories.php file where the changes need to be made

    Quote Originally Posted by DivaVocals View Post
    It is in fact BOTH files that are the problem.. For different reasons as the edits to these files serve a different purpose..

    The issue with the includes/templates/your_template/templates/tpl_advanced_search_default.php is due to a conflict with the categories sidebox which makes the categories dropdown default to the last category in the list versus "All Categories" as it should. (which is why you get no search results)


    Make the following change to includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php
    Code:
    //  Begin hideCategories code
        list($nada, $mycpath)= split('=', $box_categories_array[$i]['path']);
        $mycid = split('_', $mycpath);
       $cat_to_check  = array_pop($mycid);
        $hide_status = $db->Execute("select visibility_status 
                        FROM " . TABLE_HIDE_CATEGORIES . "
                        WHERE categories_id = " . $cat_to_check  . "
                        LIMIT 1");
        if ($hide_status->fields['visibility_status'] < 1) {
    //  End hideCategories code
    The code in the includes/modules/pages/advanced_search_result/header_php.php does not work at all.. Still don't know why, and unless someone else has the answer for how to get this to work, I will not be including it in the next hideCategories release..
    My Site - Zen Cart & WordPress integration specialist
    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.

  9. #9
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: hideCategories

    Thanks for making sure I understand. I'm selling pizza obviously and I have a category called in store only. So if they find it so be it. I just don't want to confuse people with buying items like slices and think they can get them delivered by having them front and center on the main categories.

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: hideCategories

    Quote Originally Posted by southshorepizza View Post
    Thanks for making sure I understand. I'm selling pizza obviously and I have a category called in store only. So if they find it so be it. I just don't want to confuse people with buying items like slices and think they can get them delivered by having them front and center on the main categories.
    Sure.. the issue is with the categories sidebox code though, making the change to the categories sidebox I posted solves the issue with the includes/templates/your_template/templates/tpl_advanced_search_default.php file though (no changes needed to this file).. just so you know.. It seems simple enough to do.. Your choice though.. glad you have it all working..
    My Site - Zen Cart & WordPress integration specialist
    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.

 

 

Similar Threads

  1. how to get hidecategories an dual pricing to work
    By davidweaver88 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Jun 2012, 03:35 PM
  2. anyone using HideCategories in 1.3.9d??
    By redheads in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Jun 2010, 06:54 AM
  3. HideCategories problem...
    By ShadowAngel in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Nov 2009, 10:17 PM
  4. hideCategories Module
    By marcusimages in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Aug 2009, 06:31 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