Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default How to Remove Subcategories

    i want to remove subcategories from the main content window

    http://www.cnt-gifts.com/collectibles-c-5.html

    not the oens inthe category sidebox but in the right

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: How to Remove Subcategories

    Why would you want to do that? What would you want to happen when they click the top level category?

  3. #3
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: How to Remove Subcategories

    i just want the subcategories to show in the sidebox

  4. #4
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How to Remove Subcategories

    /includes/templates/YOURTEMPLATE/templates/tpl_index_categories.php
    comment or remove this section:
    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 -->
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    Default Re: How to Remove Subcategories

    That did the trick. Thanks!
    John L.
    MultiMedia Designer

  6. #6
    Join Date
    Oct 2005
    Location
    Swansea, MA
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to Remove Subcategories

    Ok - backwards for a moment. :)

    I would like to NOT display my subcategories in the category side box but I Do want them to appear on the page after they click the main category.

    Does this make sense?

    I did edit this part but I got an error right away

    if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {


    Can anyone help?


    I would rather do it this way than with the flyout menu. (I think)
    My goal? To be Totally Zenned!

  7. #7
    Join Date
    Oct 2005
    Location
    Swansea, MA
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to Remove Subcategories

    Ok, stupid me.

    I was able to do it by editing this:

    SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS

    by removing the _SUBCATEGORIES part

    ..........it all makes perfect sense now. LOL.

  8. #8
    Join Date
    Jul 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: How to Remove Subcategories

    Another happy zener here.. :) It did the trick to me too.. :)

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

    Default Re: How to Remove Subcategories

    There are two switches using these configuration_keys in the configuration table:
    SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS
    SHOW_CATEGORIES_ALWAYS

    These control different things ...

    I am not sure why you would be changing the code for them ...

    You can locate them in your configuration settings by pasting them into the top input box in the Developer's Tool Kit and not selecting anything in the dropdown and clicking search ... then Edit on the next screen ...

    Or, paste in the bottom input box and select Catalog from the dropdown and click search to see where they are used in the code ...

    It is not a good plan to mix up the keys in the code when there are settings to control their usage in the configuration ...
    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!

 

 

Similar Threads

  1. Remove Extra Signs In Subcategories
    By YoYo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Nov 2011, 11:02 PM
  2. How to remove text links under images on subcategories?
    By spaz_tic in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 22 Apr 2011, 03:46 AM
  3. How to remove image category showing on subcategories
    By juli.may in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 16 Jan 2011, 09:21 PM
  4. How remove prefix subcategories ?
    By public2009 in forum General Questions
    Replies: 2
    Last Post: 20 May 2009, 06:36 PM
  5. Subcategories - Remove |_
    By jibon in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 3 Dec 2008, 05:19 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