Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Remove categories from dropdown menu.

    Hi there.
    I have a question in regards to dropdown menu customization.
    I would like to remove the product type categories from my dropdown menu under "Shop by Brand", ie. Toners, Cleansers, etc. but would like to leave brands intact. The reason why I want to do this is because I placed product types in one of the sideboxes.
    I am using zencart 1.3.9 h
    Also I have CSS Flyout header menu installed.
    The website is nkfacial dot com

    Any help would be appreciated.

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Remove categories from dropdown menu.

    this will be in your template header file.

    you need to modify tpl_header.php file

  3. #3
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Remove categories from dropdown menu.

    Can you please elaborate a bit more? I looked into tpl_header.php but not really sure which line to modify. I can post my tpl_header if that makes it easier to pinpoint the solution.
    Thank you.

  4. #4
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Remove categories from dropdown menu.

    yes if you can ...

  5. #5
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Remove categories from dropdown menu.

    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_header.php 3392 2006-04-08 15:17:37Z birdbrain $
    */


    ?>
    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {

    }
    ?>
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <div id="navMainLinks">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li>
    <?php } } ?>
    <li><img src="includes/templates/avonlee_contempo/images/cart.jpg" class="cart-image" alt="the shopping cart" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?> - <?php echo $_SESSION['cart']->count_contents();?> item(s) - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch">
    <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
    </div>
    </div>
    </div>
    <div class="clearBoth"></div>
    <!--eof-navigation display-->
    <!--bof-branding display-->
    <div id="logoWrapperOuter">
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    </div>
    </div>
    <div class="clearBoth"></div>
    <!--eof-branding display-->
    <!--eof-header logo and navigation display-->
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    <!--bof-drop down menu display-->
    <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
    <!--eof-drop down menu display-->
    <div class="clearBoth"></div>
    <?php } ?>

  6. #6
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Remove categories from dropdown menu.

    In your case....its tpl_drop_menu.php
    copy tpl_drop_menu.php file here

  7. #7
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Remove categories from dropdown menu.

    Here is my tpl_drop_menu

    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | [email protected] so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: tpl_drop_menu.php 2005/06/15 15:39:05 DrByte Exp $
    //?>
    <!-- menu area -->
    <div id="dropMenuWrapper">
    <div id="dropMenuWrapperb">
    <div id="dropMenuWrapperc">
    <div id="dropMenuWrapperd">
    <div id="dropMenu">
    <ul class="level1">
    <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>

    </li>
    <li class="submenu"><a href="index.php?main_page=store"> SHOP BY BRAND</a>

    <?php // load the UL-generator class and produce the menu list dynamically from there
    require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
    $zen_CategoriesUL = new zen_categories_ul_generator;
    $menulist = $zen_CategoriesUL->buildTree(true);
    $menulist = str_replace('"level4"','"level5"',$menulist);
    $menulist = str_replace('"level3"','"level4"',$menulist);
    $menulist = str_replace('"level2"','"level3"',$menulist);
    $menulist = str_replace('"level1"','"level2"',$menulist);
    $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
    $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
    echo $menulist;?>
    </li>

    <li class="submenu"><a href="index.php?main_page=services">SERVICES</a>
    </li>


    <li class="submenu"><a href="index.php?main_page=organic">WHY CHOOSE ORGANIC?</a>
    </li>

    <li class="submenu"><a href="index.php?main_page=customerservice">Customer Service</a>
    <ul class="level2">
    <li><a href="index.php?main_page=contact_us">CONTACT US</a></li>
    <li><a href="index.php?main_page=shippinginfo">SHIPPING INFO</a></li>
    <li><a href="index.php?main_page=privacy">PRIVACY POLICY</a></li>
    <li><a href="index.php?main_page=about_us">ABOUT US</a></li>
    <li><a href="index.php?main_page=account_newsletters">NEWSLETTER</a></li>
    </ul>
    </li>

    <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
    <ul class="level2">
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <?php } else { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
    <?php } ?>
    </ul>
    </li>

    <li class="submenu"><a class="noLine" href="http://nkfacial.com/blog/">Blog</a></li>

    </ul>
    </div>
    </div>
    </div>
    </div>
    </div><!-- end dropMenuWrapper-->
    <div class="clearBoth"></div>

  8. #8
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Remove categories from dropdown menu.

    I am sorry ..didnt read your post correctly...let me have a look again

    r u using css_flyout_menu?
    Last edited by gaurav10feb; 1 Sep 2011 at 01:44 AM.

  9. #9
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Remove categories from dropdown menu.

    Hi.
    I am using Horizontal CSS Drop Down Menu with categories.

  10. #10
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Remove categories from dropdown menu.

    CSS Flyout Header 1.5 to be more precise.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 How to remove the dropdown menu?
    By AbbyTan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Sep 2015, 01:14 PM
  2. Remove Level 3 Sub category from horizontal dropdown menu?
    By hollettster in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Mar 2013, 09:54 PM
  3. Dropdown menu-sub categories
    By timhersh in forum Basic Configuration
    Replies: 0
    Last Post: 9 Nov 2011, 06:03 AM
  4. Rename Dropdown menu categories
    By melindaf in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Aug 2009, 07:29 AM
  5. How to Remove Categories from Center after clicked from Navigation menu?
    By stlnyc in forum Customization from the Admin
    Replies: 0
    Last Post: 30 Oct 2008, 09:10 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