Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default 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).
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

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

    Default Re: display subcategory description

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

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

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

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: display subcategory description



    You have far too much faith in me.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: display subcategory description

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

    See where I added FRED?

    PHP Code:
        $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_WIDTHSUBCATEGORY_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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default 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).
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. v151 Display Subcategory Description - depth issue
    By simon1066 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 Nov 2013, 09:32 AM
  2. Replies: 3
    Last Post: 1 Sep 2013, 05:47 AM
  3. subcategory pictures on product description
    By bmpt in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 May 2009, 07:41 PM
  4. subcategory description
    By afo in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 2 Sep 2008, 06:28 PM
  5. A way to have a subcategory description pop-up?
    By magneteye in forum General Questions
    Replies: 2
    Last Post: 29 Apr 2008, 05:21 PM

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