Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2006
    Posts
    17
    Plugin Contributions
    0

    Default adding description to category listing

    I'm running into problems getting category descriptions to display in the category listing. For example I'm trying to make it so that the following page:

    http://www.sphotos.biz/store/index.p...ex&cPath=1_2_3

    will display the category image, followed by the category name, followed by the category description.

    I tried inserting $categories->fields['categories_description'] into category_row.php but its not displaying.

    I'm totally new to php so I'm assuming that I'm not correctly calling the variable.

    Thanks!

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: adding description to category listing

    Can you please explain clearly what did you add in which file?
    Also, did yo useperately try to echo the cateogry description and getting any value in the .php file?
    San

  3. #3
    Join Date
    Jun 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: adding description to category listing

    Quote Originally Posted by jonathan_pohl
    I tried inserting $categories->fields['categories_description'] into category_row.php
    Specifically I altered line 39 so that it is now as follows:

    Code:
      'text' => $categories->fields['categories_description'] . '<br />' . '<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'] . '</a>');
    I tried to echo $categories->fields['categories_description'], but am not getting any output.

    Thanks again

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: adding description to category listing

    Quote Originally Posted by jonathan_pohl
    Specifically I altered line 39 so that it is now as follows:

    Code:
      'text' => $categories->fields['categories_description'] . '<br />' . '<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'] . '</a>');
    I tried to echo $categories->fields['categories_description'], but am not getting any output.

    Thanks again
    That explains it
    Go above the code where it is getting the value and try to figure out the reason!

  5. #5
    Join Date
    Jul 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: adding description to category listing

    Has anyone figured this out yet? I am trying the same thing and can get a static word to sho up every time after the category name, but cannot figure out how to get the category description to populate.
    thanks
    Chris

  6. #6
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: adding description to category listing

    Quote Originally Posted by fattchris
    Has anyone figured this out yet? I am trying the same thing and can get a static word to sho up every time after the category name, but cannot figure out how to get the category description to populate.
    thanks
    Chris
    Can we see the cart so that we can help?

  7. #7
    Join Date
    Jul 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: adding description to category listing

    sure.

    http://www.livinghopechurch.com/cart/


    here is what I want it to look like....



    thanks for any help you can provide!

    Chris

  8. #8
    Join Date
    Jun 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: adding description to category listing

    sorry...i've been away from this project for a while, anyways i'm not quite sure why "that explains it". I can get static output, and I check and made sure that the variable that i'm calling is defined just like the others being called in that argument. can you give me something a little more specific than "go above the code and figure out whats going on".

    thanks

  9. #9
    Join Date
    Jan 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: adding description to category listing

    Quote Originally Posted by jonathan_pohl View Post
    sorry...i've been away from this project for a while, anyways i'm not quite sure why "that explains it". I can get static output, and I check and made sure that the variable that i'm calling is defined just like the others being called in that argument. can you give me something a little more specific than "go above the code and figure out whats going on".

    thanks
    $categories is an array, but there is no "categories_description" element in it. I do not know where it is created, but would love to so that I can achieve same result you desire.

    A>

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

    Default Re: adding description to category listing

    What version of Zen Cart are you using?
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. description under sub-category listing
    By stefknits in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Mar 2008, 07:43 PM
  2. description under sub-category listing
    By stefknits in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Feb 2008, 09:26 PM
  3. duplicate description i category listing
    By Tango in forum Basic Configuration
    Replies: 0
    Last Post: 20 Apr 2007, 08:51 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