Results 1 to 10 of 953

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive - categories menu

    Quote Originally Posted by cliffvt View Post
    Anne

    please can you assist - I have installed the "hide categories" plugin but I don't know how to get the top "Categories" menu on Winchester Responsive not to show the hidden categories. Can you tell me what code I need to change/insert and where, please?

    Thanks

    Cliff
    I can not give you any specifics because I have not used that plugin. The top categories menu uses the ul generator in includes/classes/categories_ul_generator.php and the includes/templates/winchester_responsive/templates/tpl_modules_mobile_categories_tabs.php.

    Thanks,

    Anne

  2. #2
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Winchester Responsive - categories menu

    Quote Originally Posted by picaflor-azul View Post
    I can not give you any specifics because I have not used that plugin. The top categories menu uses the ul generator in includes/classes/categories_ul_generator.php and the includes/templates/winchester_responsive/templates/tpl_modules_mobile_categories_tabs.php.

    Thanks,

    Anne

    Anne

    I found this plugin recommended on your website at https://www.picaflor-azul.com/hide-c...en-cart-plugin so I assumed that you would also therefore had made it work with your templates, else why would you recommend it...

    Are you able to quote me for adapting/customising your template to work with this please? After which I will gladly donate it back to the community to use free-of-charge.

    regards

    Cliff

  3. #3
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Winchester Responsive - categories menu

    OK I made it work myself. For anyone else wishing to do make the hide categories plugin work with the responsive templates, this is what I changed:

    in includes/classes/categories_ul_generator.php around lines 43 to 48

    I changed:
    PHP Code:
     $categories_query "select c.categories_id, cd.categories_name, c.parent_id
                                            from " 
    TABLE_CATEGORIES " c, " TABLE_CATEGORIES_DESCRIPTION " cd
                                            where c.categories_id = cd.categories_id
                                            and c.categories_status=1 " 
    .
                                            
    " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                                            
    " order by c.parent_id, c.sort_order, cd.categories_name"
    to:

    PHP Code:
    $categories_query "select c.categories_id, cd.categories_name, c.parent_id
                                            from " 
    TABLE_CATEGORIES " c, " TABLE_CATEGORIES_DESCRIPTION " cd," TABLE_HIDE_CATEGORIES " cde
                                             where c.categories_id=cd.categories_id and c.categories_id=cde.categories_id and cd.language_id='" 
    .  (int)$_SESSION['languages_id'] . "' and c.parent_id= '0' and c.categories_status='1' and cde.visibility_status < 2 OR cde.visibility_status IS NULL;
                                            " 
    order by c.parent_idc.sort_ordercd.categories_name"; 
    An voila! the hidden categories do NOT show up under the "Category" menu heading.

    CAUTION: After install of the plugin you have to physically edit each of your categories and save them, whether or not they are hidden.

    Cheers

    Cliff
    Last edited by cliffvt; 31 Jul 2015 at 02:43 PM.

  4. #4
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive - categories menu

    Quote Originally Posted by cliffvt View Post
    OK I made it work myself. For anyone else wishing to do make the hide categories plugin work with the responsive templates, this is what I changed:

    in includes/classes/categories_ul_generator.php around lines 43 to 48

    I changed:
    PHP Code:
     $categories_query "select c.categories_id, cd.categories_name, c.parent_id
                                            from " 
    TABLE_CATEGORIES " c, " TABLE_CATEGORIES_DESCRIPTION " cd
                                            where c.categories_id = cd.categories_id
                                            and c.categories_status=1 " 
    .
                                            
    " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                                            
    " order by c.parent_id, c.sort_order, cd.categories_name"
    to:

    PHP Code:
    $categories_query "select c.categories_id, cd.categories_name, c.parent_id
                                            from " 
    TABLE_CATEGORIES " c, " TABLE_CATEGORIES_DESCRIPTION " cd," TABLE_HIDE_CATEGORIES " cde
                                             where c.categories_id=cd.categories_id and c.categories_id=cde.categories_id and cd.language_id='" 
    .  (int)$_SESSION['languages_id'] . "' and c.parent_id= '0' and c.categories_status='1' and cde.visibility_status < 2 OR cde.visibility_status IS NULL;
                                            " 
    order by c.parent_idc.sort_ordercd.categories_name"; 
    An voila! the hidden categories do NOT show up under the "Category" menu heading.

    CAUTION: After install of the plugin you have to physically edit each of your categories and save them, whether or not they are hidden.

    Cheers

    Cliff
    I am happy that you figured it out ;)

    Thanks,

    Anne

 

 

Similar Threads

  1. v154 Winchester Black Responsive Template
    By picaflor-azul in forum Addon Templates
    Replies: 497
    Last Post: 24 Apr 2023, 09:29 PM
  2. v155 Winchester Black responsive - looking for Social media icon flexible footer fix
    By MattA66 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Jun 2021, 05:34 PM
  3. v155 Responsive Classic vs Responsive Sheffield Blue vs ?
    By Zean in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 May 2016, 07:01 AM
  4. v154 Where do I find the images for sliders, using Winchester Responsive Black
    By zbdude in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Apr 2016, 12:00 AM
  5. v153 Winchester Responsive - Trouble resizing carousel size?
    By hols.club in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Nov 2014, 05:09 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