Thread: hideCategories

Page 39 of 49 FirstFirst ... 293738394041 ... LastLast
Results 381 to 390 of 487
  1. #381
    Join Date
    Dec 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: hideCategories

    You do have the original file 'includes/modules/pages/advanced_search_result/header_php.php' , correct?

    First I tried Ajeh's solution here: http://www.zen-cart.com/showthread.p...ry-from-search

    However, I have >100 hidden subcategories like this and growing daily:
    Top Level = Customer's Baskets (hidden)
    SubCategory = A (hidden)
    SubCategory = AAA Company (hidden)
    SubCategory = AAA Company Project1 (hidden)
    Products = Product with Company name (active)

    Since each subcategory only has one `parent_id`, I couldn't figure out how to exclude an entire "top-level" category and have it recurse through all the subcategories and products, and i didn't want to add ...AND p.master_categories_id != '27'... every time I made a new folder.

    Then I noticed that I have category images for all my visible categories, but no images for my hidden categories, so my work-around is:

    Change:
    Code:
    $where_str = " WHERE (p.products_status = 1
                   AND p.products_id = pd.products_id
                   AND pd.language_id = :languagesID
                   AND p.products_id = p2c.products_id
                   AND p2c.categories_id = c.categories_id ";
    to exclude categories without an image:
    Code:
    $where_str = " WHERE (p.products_status = 1
                   AND p.products_id = pd.products_id
                   AND pd.language_id = :languagesID
                   AND p.products_id = p2c.products_id
                   AND p2c.categories_id = c.categories_id
    	       AND c.categories_image != 'NULL'";

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

    Default Re: hideCategories

    This isn't a general "hide Categories" thread, this is the support thread for the hideCategories add-on.. So I'm curious if you are you suggesting this solution to those using the hideCategories add-on (which is the purpose of this support thread)??? Because it sure doesn't sound like you are using the hideCategories add-on..

    Quote Originally Posted by curt_l View Post
    You do have the original file 'includes/modules/pages/advanced_search_result/header_php.php' , correct?

    First I tried Ajeh's solution here: http://www.zen-cart.com/showthread.p...ry-from-search

    However, I have >100 hidden subcategories like this and growing daily:
    Top Level = Customer's Baskets (hidden)
    SubCategory = A (hidden)
    SubCategory = AAA Company (hidden)
    SubCategory = AAA Company Project1 (hidden)
    Products = Product with Company name (active)

    Since each subcategory only has one `parent_id`, I couldn't figure out how to exclude an entire "top-level" category and have it recurse through all the subcategories and products, and i didn't want to add ...AND p.master_categories_id != '27'... every time I made a new folder.

    Then I noticed that I have category images for all my visible categories, but no images for my hidden categories, so my work-around is:

    Change:
    Code:
    $where_str = " WHERE (p.products_status = 1
                   AND p.products_id = pd.products_id
                   AND pd.language_id = :languagesID
                   AND p.products_id = p2c.products_id
                   AND p2c.categories_id = c.categories_id ";
    to exclude categories without an image:
    Code:
    $where_str = " WHERE (p.products_status = 1
                   AND p.products_id = pd.products_id
                   AND pd.language_id = :languagesID
                   AND p.products_id = p2c.products_id
                   AND p2c.categories_id = c.categories_id
               AND c.categories_image != 'NULL'";
    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. #383
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: hideCategories

    Hi
    forgive me if this issue is already posted but I just wanted to help anyone who may experience similar problem...
    I have Hide Categories installed and working just fine (thank you s_mack) yet I have had troubles creating sitemap.xml for my store, the bug is solved here http://www.zen-cart.com/showthread.p...tain-situation
    yet in the module file includes/init_includes/overrides/init_add_crumbs.php it needs to be updated to close out the bug giving you the following on line 41...

    } // hideCategories code
    } elseif(SHOW_CATEGORIES_ALWAYS == 0) {
    // if invalid, set the robots noindex/nofollow for this page
    $robotsNoIndex = true;
    break;
    }
    }
    }
    /**
    * add get terms (e.g manufacturer, music genre, record company or other user defined selector) to breadcrumb
    */
    $sql = "select *
    from " . TABLE_GET_TERMS_TO_FILTER;
    $get_terms = $db->execute($sql);
    while (!$get_terms->EOF) {

    I hope this helps someone

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

    Default Re: hideCategories

    To be clear, is your fix if for stores running 1.3.9?????

    Quote Originally Posted by picandnix View Post
    Hi
    forgive me if this issue is already posted but I just wanted to help anyone who may experience similar problem...
    I have Hide Categories installed and working just fine (thank you s_mack) yet I have had troubles creating sitemap.xml for my store, the bug is solved here http://www.zen-cart.com/showthread.p...tain-situation
    yet in the module file includes/init_includes/overrides/init_add_crumbs.php it needs to be updated to close out the bug giving you the following on line 41...

    Code:
    } //  hideCategories code
        } elseif(SHOW_CATEGORIES_ALWAYS == 0) {
          // if invalid, set the robots noindex/nofollow for this page
          $robotsNoIndex = true;
          break;
        }
      }
    }
    /**
     * add get terms (e.g manufacturer, music genre, record company or other user defined selector) to breadcrumb
     */
    $sql = "select *
            from " . TABLE_GET_TERMS_TO_FILTER;
    $get_terms = $db->execute($sql);
    while (!$get_terms->EOF) {
    I hope this helps someone
    Also wanna suggest that make when posting code on the forum, make sure you put it inside the "code" forum tags.. It keeps the forum from accidentally parsing your code incorrectly and doing things like inserting a smilie when one wasn't meant to be.. Plus it makes the code easier to read..
    Last edited by DivaVocals; 11 Jul 2012 at 03:50 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.

  5. #385
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: hideCategories

    Sorry. 1.3.9 yes. I tried to paste the code inside php tags but it would also display the bold and colour change tags that I placed the additional code within. I figured that would confuse people more so than me simply pasting the code directly into my post.

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

    Default Re: hideCategories

    Quote Originally Posted by picandnix View Post
    Sorry. 1.3.9 yes. I tried to paste the code inside php tags but it would also display the bold and colour change tags that I placed the additional code within. I figured that would confuse people more so than me simply pasting the code directly into my post.
    It's supposed to work that way (like a code editor will color code), and I don't think anyone would be confused by that at all.. It's actually harder to read inside the post body IMHO
    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.

  7. #387
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: hideCategories

    I have been successfully using this mod on 1.3.9. I am looking to upgrade to ZC 1.5. Does anyone have this working fully on 1.5 yet, or perhaps have started to update the mod? I am happy to help where possible even if it's just testing.

  8. #388
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: hideCategories

    Hi could someone please give me a link to the version which is suitable for 1.3.8a on PHP Version: 5.2.14 (Zend: 2.2.0)
    This would be much appreciated.
    Many Thanks
    Renz

  9. #389
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: hideCategories

    Quote Originally Posted by Renz View Post
    Hi could someone please give me a link to the version which is suitable for 1.3.8a on PHP Version: 5.2.14 (Zend: 2.2.0)
    This would be much appreciated.
    Many Thanks
    Renz
    Not quite the answer you were hoping for but first things first you need to use this link http://www.zen-cart.com/content.php?148 and escape the clutches of 1.3.8a, the hackers goldmine. Upgrade to 1.3.9J and you can install the most current version of Hide Categories.

  10. #390
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Re: hideCategories

    I (the original author of this cursed mod) am going to say again: I'm not doing any updates for this, nor am I providing any support, and I really don't suggest you use it. It was purpose-built for a specific scenario and it involves too many core modifications to be really useful. As popular as it was, I regret ever releasing it.

 

 
Page 39 of 49 FirstFirst ... 293738394041 ... LastLast

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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR