Thread: hideCategories

Page 1 of 2 12 LastLast
Results 1 to 10 of 487

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    Sacramento, CA
    Posts
    64
    Plugin Contributions
    1

    Default Re: hideCategories

    Quick question, S-mack: by the way, this mod is great.

    I've installed hideCategories, but hidden categories are still showing up in the upper category listing, underneath the logo. Everything's fine in the category navigation on the left - hidden categories are staying properly hidden.

    During the installation, I only manually modified one file, tpl_advanced_search.php. (I merged the changed hideCategories code with my custom tpl_advanced_search.php.) What files control the upper category navigation hidden settings?

    Thanks a lot for the help!

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

    Default Re: hideCategories

    Yeah... that's why this isn't really a clean mod :) There are potentially dozens of places that one would have to account for in order to hide the categories completely... as mentioned in the ReadMe, I just did the ones we were using - which didn't include the upper links.

    I don't know what file controls that upper menu as I've never used it. See if you can find that out (by asking in a general forum or something) and report it here and someone (maybe me) should be able to figure out what code to change.



    Ultimately, when I'm less busy, I'd like to re-release this contrib with an as-exhaustive-as-possible set of files... but even then, there will be 3rd-party contribs and such that will need to be modified. In other words... this was destined from the beginning to be a nightmare to support :)

    It would be dead easy if the core code made thier population calls differently. If every file in the system called some common function to get the list of categories/items then we'd only have to modify that one function rather than dozens or even hundreds of files.

    Oh well.

    - Steven

  3. #3
    Join Date
    Mar 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: hideCategories

    I use the table prefixes in my client's cart, because there are other things going on in the database, and had a problem getting this contrib to run out of the box. I found out there is a simple code fix to two files:
    ./includes/templates/YOUR_TEMPLATE/templates/tpl_products_all_default.php
    LINE 24
    Code:
    	$products_all_query_raw = preg_replace('/, ' . TABLE_PRODUCTS_DESCRIPTION . ' pd(\s*)WHERE/', ' LEFT JOIN ' . TABLE_HIDE_CATEGORIES . ' h ON (p.master_categories_id = h.categories_id), ' . TABLE_PRODUCTS_DESCRIPTION . ' pd WHERE (h.visibility_status < 2 OR h.visibility_status IS NULL) AND', $products_all_query_raw);
    ./includes/templates/YOUR_TEMPLATE/templates/tpl_products_new_default.php
    LINE 24
    Code:
    	$products_new_query_raw = preg_replace('/, ' . TABLE_PRODUCTS_DESCRIPTION . ' pd(\s*)WHERE/', ' LEFT JOIN ' . TABLE_HIDE_CATEGORIES . ' h ON (p.master_categories_id = h.categories_id), ' . TABLE_PRODUCTS_DESCRIPTION . ' pd WHERE (h.visibility_status < 2 OR h.visibility_status IS NULL) AND', $products_new_query_raw);
    I added the second TABLE_PRODUCTS_DESCRIPTION, which was previously set to 'products_description'. In other words, it was looking for the table named products_description and not DB_PREFIX . products_description.

    It was likely just a missed statement. I know someone else in this thread had posted having a problem with this.

    hope that helps...
    marc...

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

    Default Re: hideCategories

    Thanks! Missed that one :)

    - Steven

  5. #5
    Join Date
    Mar 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: hideCategories

    No problem. I caught something else too. Is it fair to assume that FILENAME_STOCK_MANAGER and FILENAME_IMAGE_HANDLER are constants from installed modules? I am not running these modules and it appears to have messed something up in my store's admin. I changed the file:
    admin/includes/modules/category_product_listing.php

    I attached the file to this thread. The changes are from line 367-376. Minor, but could help someone else down the road.

    cheers,
    marc...
    Attached Files Attached Files

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

    Default Re: hideCategories

    yeah, those were already covered above.

  7. #7
    Join Date
    Mar 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: hideCategories

    excellent. sorry about that, didn't read the full thread. my bad.

    as a side note, the file I uploaded is no good. there was something else I added that I shouldn't have. please ignore it.

  8. #8
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default Re: hideCategories

    Quote Originally Posted by MOTAS View Post
    I use the table prefixes in my client's cart, because there are other things going on in the database, and had a problem getting this contrib to run out of the box. I found out there is a simple code fix to two files:
    ./includes/templates/YOUR_TEMPLATE/templates/tpl_products_all_default.php
    LINE 24
    Code:
    	$products_all_query_raw = preg_replace('/, ' . TABLE_PRODUCTS_DESCRIPTION . ' pd(\s*)WHERE/', ' LEFT JOIN ' . TABLE_HIDE_CATEGORIES . ' h ON (p.master_categories_id = h.categories_id), ' . TABLE_PRODUCTS_DESCRIPTION . ' pd WHERE (h.visibility_status < 2 OR h.visibility_status IS NULL) AND', $products_all_query_raw);
    ./includes/templates/YOUR_TEMPLATE/templates/tpl_products_new_default.php
    LINE 24
    Code:
    	$products_new_query_raw = preg_replace('/, ' . TABLE_PRODUCTS_DESCRIPTION . ' pd(\s*)WHERE/', ' LEFT JOIN ' . TABLE_HIDE_CATEGORIES . ' h ON (p.master_categories_id = h.categories_id), ' . TABLE_PRODUCTS_DESCRIPTION . ' pd WHERE (h.visibility_status < 2 OR h.visibility_status IS NULL) AND', $products_new_query_raw);
    I added the second TABLE_PRODUCTS_DESCRIPTION, which was previously set to 'products_description'. In other words, it was looking for the table named products_description and not DB_PREFIX . products_description.

    It was likely just a missed statement. I know someone else in this thread had posted having a problem with this.

    hope that helps...
    marc...
    So do i need to change anything now with this update or do i still need to add my prfix somewhere?

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

    Default Re: hideCategories

    give it a try. you haven't provided any information that lets anyone help you. To the question, "what am I missing"... the obvious and only answer is "whatever you're missing".

    Read the readme carefully, go over this forum carefully... it obviously works for most people so just go step-by-step.

    Good luck.

  10. #10
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default Re: hideCategories

    Quote Originally Posted by s_mack View Post
    give it a try. you haven't provided any information that lets anyone help you. To the question, "what am I missing"... the obvious and only answer is "whatever you're missing".

    Read the readme carefully, go over this forum carefully... it obviously works for most people so just go step-by-step.

    Good luck.
    OK everything is installed, every file is in its correct location, sql patch is installed and sussful.

    When i login to the admin page....goto cat/products and add a new cat and go to edit it, there is no option for hinding the cat and when you are at the root of cat/products you dont see any change here as well.

    if you want to login and take a look let me know, (send PM)

    Thanks,
    Daniel

 

 
Page 1 of 2 12 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

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