Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 12:19:52 PM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12794 Posts in 1521 Topics by 6461 Members
Latest Member: egrovesystems
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Shopping cart software
| | |-+  Zen cart
| | | |-+  Categorie Subs
« previous next »
Pages: 1 [2] Print
Author Topic: Categorie Subs  (Read 956 times)
paulc010
Guru
Settling In
*****

Karma: 8
Offline Offline

Posts: 46


« Reply #15 on: November 03, 2010, 11:43:24 PM »

If I'm understanding you correctly, you could try modifying tpl_index_categories.php

At about line 67 there's the line:

Code:
 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');
  }
?>

You could try changing the first bit of that to check for this being the home page:

Code:
 if ((PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) || ($this_is_home_page) {
    // do nothing
  } else {
........


Don't have time to try it out, but worth a shot -- I'm not 100% sure if the variable $this_is_home_page is in scope at this point. Usual disclaimers apply, and you should obviously backup any file before modifying them :D

Paul
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009