Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / display subcategory description

display subcategory description

Locked

Views: 1,574

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Jul 2008, 2:58 PM
#1
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

display subcategory description

Is it possible to open a category which has subcategories and see the descriptions of the subcategories on the page. In other words, I have Category One. Category One has two subcategories: Category One-A and Category One-B. If Category One is opened, can the description of Category One-A and Category One-B be displayed under the link/title so the user knows what the content of the categories is? (the categories contain documents, so the description would be a summary of the contents).

30 Jul 2008, 3:02 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: display subcategory description

This has to be a "first" ! ...

... afo ASKING a question instead of ANSWERING them!:D

(BTW... I don't know the answer!)

30 Jul 2008, 3:28 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: display subcategory description

:rotflmao:

You have far too much faith in me. :D

30 Jul 2008, 6:01 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: display subcategory description

Two fold ... peek in the category_row.php module ...

See where I added FRED?

    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
                                           'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '<br>FRED' . '</a>');

Now you want to get in there a:
$categories->fields['categories_description']

However, that would be obtained in the main_template_vars.php of the /pages/index ...

And you will probably want to clean up that $categories->fields['categories_name'] so you don't make messies all over ... :cool:

30 Jul 2008, 6:07 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: display subcategory description

I think I follow you. I'll give it a whirl. I've made so many messies trying to do this, one more won't matter. Good thing is, my nephew is excited about getting his website done (not e-commerce - ZC is acting as CMS).