Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Location
    san francsico
    Posts
    134
    Plugin Contributions
    0

    Default How do I move the categories to 'da top?

    Please see http://www.2muchfunclub.net/2muchfun...index&cPath=33
    At the bottom are the categories 'Kawasaki, Harley Davidson' Honda..etc.
    I would like to have these categories at the top of my 'Your Source for Hard Saddlebags' introduction...

    Please help....

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

    Default Re: How do I move the categories to 'da top?

    You can edit /includes/templates/your_template/templates/tpl_index_categories.php.
    Move the section (lines 64-76) starting with

    <!-- BOF: Display grid of available sub-categories, if any -->

    to just above

    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>

    (line 34).

  3. #3
    Join Date
    May 2008
    Location
    san francsico
    Posts
    134
    Plugin Contributions
    0

    Default Re: How do I move the categories to 'da top?

    that didn't work....
    please see http://www.2muchfunclub.net/2muchfun...ocg0q3uf67mjg5

    the sub-categories are no longer at the bottom..but they're not at the top either.....

    I did exactly like you said...

    Larry

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

    Default Re: How do I move the categories to 'da top?

    Post the section of your tpl_index_categories.php with the subcategory listing and a few lines above and below it. If you misplaced it by even one line, putting it inside another section, it could be disabled.

  5. #5
    Join Date
    May 2008
    Location
    san francsico
    Posts
    134
    Plugin Contributions
    0

    Default Re: How do I move the categories to 'da top?

    didn't work...
    here is the php code...
    by the way ... tpl_index_categories.php is in.... includes | templates | template_default | templates .....for me....

    <?php
    /**
    * Page Template
    *
    * Loaded by main_page=index<br />
    * Displays category/sub-category listing<br />
    * Uses tpl_index_category_row.php to render individual items
    *
    * @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_index_categories.php 4678 2006-10-05 21:02:50Z ajeh $
    */
    ?>
    <div class="centerColumn" id="indexCategories">
    <?php if ($show_welcome == true) { ?>
    <h1 id="indexCategoriesHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
    <?php } ?>

    <!-- deprecated - to use - uncomment
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN; ?></div>
    <?php } ?>-->

    <!-- deprecated - to use - uncomment
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php } ?>-->

    <!-- BOF: Display grid of available sub-categories, if any -->
    <?php
    if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) {
    // do nothing
    } else {
    // display subcategories
    /**
    * 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 -->

    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <div id="indexCategoriesMainContent" class="content"><?php
    /**
    * require the html_define for the index/categories page
    */
    include($define_page);
    ?></div>
    <?php } ?>

    <?php } else { ?>
    <h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1>
    <?php } ?>

    <?php
    if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') {
    // categories_image
    if ($categories_image = zen_get_categories_image($current_category_id)) {
    ?>
    <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>
    <?php
    }
    } // categories_image
    ?>

    <?php
    // categories_description
    if ($current_categories_description != '') {
    ?>
    <div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div>
    <?php } // categories_description ?>

    <?php
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_CATEGORY);

    while (!$show_display_category->EOF) {
    // // echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);

    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_FEATURED_PRODUCTS') { ?>
    <?php
    /**
    * display the Featured Products Center Box
    */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php } ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
    * display the Special Products Center Box
    */
    ?>
    <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php } ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_NEW_PRODUCTS') { ?>
    <?php
    /**
    * display the New Products Center Box
    */
    ?>
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_UPCOMING') { ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>
    <?php
    $show_display_category->MoveNext();
    } // !EOF
    ?>
    </div>

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

    Default Re: How do I move the categories to 'da top?

    OK, that entire area of the file only executes on the homepage.
    Move that code block to just below
    PHP Code:
    <?php } else { ?>
    <h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1>
    <?php ?>
    You should not be changing the /template_default/ version of any file. Copy it to the corresponding location under /your_template/ and edit that copy.
    Last edited by gjh42; 13 Jan 2011 at 08:42 AM.

  7. #7
    Join Date
    May 2008
    Location
    san francsico
    Posts
    134
    Plugin Contributions
    0

    Default Re: How do I move the categories to 'da top?

    yea!!!
    that's the ticket....

    thanks

 

 

Similar Threads

  1. v154 Currency box - how do I move it to the top?
    By amebb in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 15 Dec 2015, 12:19 AM
  2. Move categories from the bottom center to top?
    By beavertje in forum Templates, Stylesheets, Page Layout
    Replies: 24
    Last Post: 3 Mar 2009, 11:38 AM
  3. Want to free up categories on the left and move it to the top
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jun 2008, 04:39 AM
  4. How to move the Top Home Link & Login
    By bfwdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Sep 2006, 01:50 AM
  5. How to move the top bar under the banner?
    By mattlowe01 in forum Basic Configuration
    Replies: 7
    Last Post: 3 Jun 2006, 06:54 AM

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