Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How can I remove Category names in the main window?

    Original poster apparently solved his own problem, but was not community minded enough to share his solution.

    So for anyone following this thread, here is a solution that you can use. I have tested it for just a couple of days so if you find a glitch please post it here.

    This is only for version 1.3.x:

    You should be using the override system and have a folder for your template files in the locations where you are altering files.

    custom will be the folder for this example:

    In your /includes/templates/custom/ folder create another folder named 'templates'

    find the tpl_index_categories.php file located in the /includes/templates/template_default/templates/
    folder and ftp it to your PC.

    Use your editor, notepad or? and open the file and locate this code:
    Code:
    <!-- BOF: Display grid of available sub-categories, if any -->
    <?php
    /**
     * require the code to display the sub-categories-grid, if any exist
     */
       require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
    ?>
    <!-- EOF: Display grid of available sub-categories -->
    and delete all of this code from the BOF line to and including the EOF line.

    Save it and FTP it to your custom folder: /includes/templates/custom/templates/

    Now when you select a category, there will be no display of the sub-categories that reside under it. Use this only if you do not want them to display.
    Zen-Venom Get Bitten

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I remove Category names in the main window?

    Or ... to save pain and sorrow later for a quick fix ...

    Just comment out this line in your override file ...

    Code:
       // require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
    This way you will know "what" you ripped out of the code in your override ...
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Jun 2006
    Location
    Toronto,ON, Canada
    Posts
    15
    Plugin Contributions
    0

    Idea or Suggestion Re: How can I remove Category names in the main window?

    To remove categories on the main page...

    In the admin panel, go to Configuration>Layout Settings

    Towards the lower middle, change "Categories - Always Show on Main Page"

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I remove Category names in the main window?

    I believe this was a bit more indepth in that the categories were not wanted to display at all on the main page when a Category was selected from the Cat box ...

    I could be mistaken ... this is but my first cup of coffee ...
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    Jun 2006
    Location
    Toronto,ON, Canada
    Posts
    15
    Plugin Contributions
    0

    Default Re: How can I remove Category names in the main window?

    I may have misunderstood the issue at hand...

    I am new to Zen and I found this post when I was trying to solve a problem I was having. I had the categories listing in the center area of the main entry page.

    I'm just having my morning coffee :)

  6. #16
    Join Date
    Jun 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: How can I remove Category names in the main window?

    seriously, i give this guy credit that no one answered his qn..

    however, there is no need to be so rude here.

    Categories-Tabs Menu ON/OFF

    that this the settings u shld have changed. a bit of try and error wld have given u the answer actually.

  7. #17
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How can I remove Category names in the main window?

    Sorry, the Categories-Tabs Menu was not what the OP was talking about. The fix was posted above by Kobra.

  8. #18
    Join Date
    Oct 2005
    Posts
    2
    Plugin Contributions
    0

    Default Re: How can I remove Category names in the main window?

    This can be disabled in Admin>Product Listing>Show SubCategories on Main Page while navigating - set this to 0

  9. #19
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How can I remove Category names in the main window?

    Good to have this update for the thread. I expect this option didn't exist a year and some ago or else Ajeh would have mentioned it... she writes the code, after all...

    MMMM wait a minute - it's not the product listing the OP was talking about. Actually I don't understand the usefulness of what he wanted, but he wanted a category with subcats (and no immediate products) to not show the subcats when the top cat was selected. I guess he had a reason...
    Last edited by gjh42; 24 Aug 2007 at 04:07 PM.

  10. #20
    Join Date
    Nov 2008
    Location
    London
    Posts
    94
    Plugin Contributions
    0

    Default Re: How can I remove Category names in the main window?

    Quote Originally Posted by Ajeh View Post
    Or ... to save pain and sorrow later for a quick fix ...

    Just comment out this line in your override file ...

    Code:
       // require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
    This way you will know "what" you ripped out of the code in your override ...
    Hello,
    Long ago this change was made to my site. I would like to know how to restore the ripped code so that subcategory names display once more and I can then just hide or unhide them at will or using css.
    I have searched in developer tool for the code changes you posted but couldn't find them. What other code might have been removed from which files?

    www. r a g a n d m a g p i e .co.uk

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v150 Replacing Category Names with Images in the main page (not the side bar)
    By barinboxcreative in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Feb 2013, 06:19 PM
  2. Category page questions, how do i remove the main cat image?
    By tcarden in forum Customization from the Admin
    Replies: 4
    Last Post: 12 Dec 2012, 04:20 AM
  3. How can i remove the categories from the main page?
    By boinkit in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Feb 2008, 11:19 AM
  4. can I put a pop up window on the main page?
    By touchclothing in forum Basic Configuration
    Replies: 4
    Last Post: 2 Sep 2006, 03:15 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