Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / always display subcategories in sidebox

always display subcategories in sidebox

Views: 30,165

Results 41 to 52 of 52
5 Feb 2010, 7:32 AM
#41
neha avatar

neha

New Zenner

Join Date:
Feb 2010
Posts:
4
Plugin Contributions:
0

always display subcategories in sidebox

Hi there,

Thanks for your response. get to know about the new features.

But sorry to say "categories_dressing" not working according to my requirement.

actually i don't want to permanent delete the subcategories at level 2 and up to from the sidebox.

i need to show the master category and first level subcategory always.

and by click on the sub category level 1 it should show me the list of sub categories at level 2 in the side box.

Hope u understand my requirement and help me accordingly.

Looking forward for positive response.
Thanks.

5 Feb 2010, 11:04 AM
#42
neha avatar

neha

New Zenner

Join Date:
Feb 2010
Posts:
4
Plugin Contributions:
0

Re: always display subcategories in sidebox

Can someone please help on above issue to

always show subactegory level 1 and by click on subactegory1 it shows me subcategories at level 2 in the sidebox.

i m trying to find some solution. please help.

i will be thankful to you.

Thanks.

5 Feb 2010, 1:52 PM
#43
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: always display subcategories in sidebox

Please post in the Categories Dressing support thread for help with this.

3 Jun 2010, 5:06 PM
#44
branden avatar

branden

New Zenner

Join Date:
Apr 2010
Location:
Seattle, WA
Posts:
50
Plugin Contributions:
0

Re: always display subcategories in sidebox

The ch_category zip file is not downloadable anymore. Does anyone know where to get it? or can someone re-post it. (author please post in downloads area if possable) Thanks:shocking:
Zen Cart Help

3 Jun 2010, 5:11 PM
#45
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: always display subcategories in sidebox

It is included as an option in Categories Dressing, and you can install just the ch_categories if you want to.

4 Jun 2010, 4:59 AM
#46
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: always display subcategories in sidebox

The ch_categories download is still on the original site, now on the second page of items. (I didn't test it.)
http://www.held-im-ruhestand.de/software/zen-cart-categories

14 Jul 2010, 12:40 PM
#47
captain_tycoon avatar

captain_tycoon

New Zenner

Join Date:
Dec 2009
Posts:
26
Plugin Contributions:
0

Re: always display subcategories in sidebox

Hi, below is my code for tpl_categories.php; I've got the 'show all subs' to work but I'm trying to make the main category not linked and bold (to act as a heading). Does anyone know how to do this?

  $content_tm .= '<table cellpadding="0" cellspacing="0" border="0">';

  for ($i=0;$i<sizeof($box_categories_array);$i++) {
     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)) {
        // skip if this is for the document box (==3)
      } else {
      $content_tm .= '<tr>';

      if ($box_categories_array[$i]['current']) {
        if ($box_categories_array[$i]['has_sub_cat']) {
          $content_tm .= '<td class="catnavm">' . $box_categories_array[$i]['name'] . '</td>';
        } else {
          $content_tm .= '<td class="catnavselected"><a href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">' . $box_categories_array[$i]['name'] . '</a></td>';
        }
      } else {
          $content_tm .= '<td class="catnav"><a href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">' . $box_categories_array[$i]['name'] . '</a></td>';
      }
	  
      if (SHOW_COUNTS == 'true') {
        if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
          $content_tm .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
        }
      }

      $content_tm .= '</tr>';

    }
  }

      $content_tm .= '</table>';

Thanks

14 Jul 2010, 7:40 PM
#48
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: always display subcategories in sidebox

Sorry, I don't want to take the time to retrofit Template Monster's obsolete table layout for features that are built into Categories Dressing. If you want to use that mod, you can hide top categories and make headings to replace them; or you could tweak the code to unlink tops.

The part of the code you show doesn't have a reliable method that could be used for determining top categories, and I don't know what the rest of their version of the file looks like.

20 Jul 2010, 8:21 AM
#49
captain_tycoon avatar

captain_tycoon

New Zenner

Join Date:
Dec 2009
Posts:
26
Plugin Contributions:
0

Re: always display subcategories in sidebox

gjh42:

Sorry, I don't want to take the time to retrofit Template Monster's obsolete table layout for features that are built into Categories Dressing. If you want to use that mod, you can hide top categories and make headings to replace them; or you could tweak the code to unlink tops.

The part of the code you show doesn't have a reliable method that could be used for determining top categories, and I don't know what the rest of their version of the file looks like.

What if I was to revert back to the original zencart default template file. What would I need to change from there.

20 Jul 2010, 8:31 AM
#50
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: always display subcategories in sidebox

The Categories Dressing mod has the code needed to do this already. You would probably want to install its ch_categories option, and set the active/level control to hide top cats, then make a non-linked heading for the first subcategory of each top cat, with an image or text of the top cat name.

6 May 2011, 2:22 PM
#51
aufa avatar

aufa

New Zenner

Join Date:
Mar 2011
Posts:
5
Plugin Contributions:
0

Re: always display subcategories in sidebox

thank's a lot it works on my site http://www.aufaline.com:clap:

6 May 2011, 2:54 PM
#52
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: always display subcategories in sidebox

You're not actually using any kind of categories modification. I can't tell if you are really using Order Steps Tableless without creating an account and starting to check out; one of your other two posts is a reasonable question relevant to the thread, but all of your posts are primarily advertising which is not allowed. You can put your website name in your signature if you want, and ask real questions. Your current behavior is on track to get your posts deleted.