Forums / Setting Up Categories, Products, Attributes / Catagory Description not showing

Catagory Description not showing

Locked

Views: 2,906

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
5 Apr 2009, 8:53 PM
#1
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Catagory Description not showing

I can't work out why. Version 1.3.8a, I add a Catagory description to top level cat in ACP, where do I switch this on please?

I have the manual and can usually eventually find what I am looking for there or in here, but I must be searching the wrong terms and am now :frusty:

5 Apr 2009, 10:24 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Catagory Description not showing

What happens if you switch to the Classic Template? A lot of templates shut off things ... :unsure:

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!

6 Apr 2009, 9:32 AM
#3
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

Hello, thank you. I am using the classic template on this site.

6 Apr 2009, 10:53 AM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Catagory Description not showing

do you have single item in your category ?

7 Apr 2009, 10:34 AM
#5
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

I have 2 items in it so far, https://www.woodstores.co.uk

Is it something I might have switched off myself in admin perhaps?

7 Apr 2009, 2:24 PM
#6
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Catagory Description not showing

i see you defined meta tag for your category .. ???? but not description .. ?
there are no switches to turn category description on or off ( my love and hate part of zencart )

how did you add description ? when you listing your categories in admin
at right hand side you have green button displayed by "e" for edit ..
you need to click on that , and edit info for your category or subs ..

7 Apr 2009, 4:15 PM
#7
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

How I added the description....admin> catalogue> catagories/products> then I clicked the e at right on the catagory, and added it there in the catagory description box.

The catagory description is showing for the empty catagory (custom wood stores) which puzzles me even more.

re metatags for catagory but not description, not sure what you mean sorry I (what I mean is I didn't think I had done any yet).

7 Apr 2009, 4:34 PM
#8
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Catagory Description not showing

sorry , this is odd , i tried to replicate this on my ZC with classic template , but everything seems to be working ..

maybe a guru will come to rescue soon .. im all out about this glitch

7 Apr 2009, 4:41 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Catagory Description not showing

I cannot reproduce the missing categories_description ...

For giggles and grins can you get the Debug Tool in the Free Software Add-ons and see if it reports any errors when you click on the category with the missing description?

What happens if you add categories_description to another category and add 2 test products to it?

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!

8 Apr 2009, 10:00 AM
#10
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

Thank you for looking and helping!

I will try that, add the catagory description first and then add the items. And will try and get the add-on debug tool (why giggles and grins??).

8 Apr 2009, 12:00 PM
#11
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

I think maybe I have missed something obvious, does the catagory description only show if there are no items in that catagory?
I went to my other site, https://www.heavenlysoaps.co.uk and added a catagory bath melts and added a description, but no items, the catagory description showed for this. So I went to another product bath bombs where the catagory description was not showing, deleted the items listed in it, and the catagory description then appeared.

8 Apr 2009, 1:53 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Catagory Description not showing

This code is used when there are not products ...
Could you check the file:
/includes/templates/templates_default/templates/tpl_index_product_list.php

Do you see this code in it around lines 30 to 35:

<?php
// categories_description
    if ($current_categories_description != '') {
?>
<div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description;  ?></div>
<?php } // categories_description ?>

This code is used when there are products ...
Could you look in this file around lines 58-63:
/includes/templates/templates_default/templates/tpl_index_categories.php

<?php
// categories_description
    if ($current_categories_description != '') {
?>
<div id="categoryDescription" class="catDescContent"><?php echo 'MY DESCRIPTION: ' . $current_categories_description;  ?></div>
<?php } // categories_description ?>

Now check your overrides for these two files ... is the code there? Is the code commented out?

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!

10 Apr 2009, 7:28 AM
#13
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

Ooh, that second file, index_categories.php, mine is different, the bit that is different is I don't have this bit in it

?php echo 'MY DESCRIPTION:

10 Apr 2009, 1:50 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Catagory Description not showing

Sorry I put that in there so you could see the difference when each peice of code runs at various points of the Product Listings when the categories_description runs ...

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!

11 Apr 2009, 7:12 PM
#15
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

Apart from that one line in the code where there are products listed, I have the same code, do I need to add that bit that is missing perhaps?

12 Apr 2009, 2:43 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Catagory Description not showing

You don't need it ... that was just so you could see which one was running when you should see the description ... one would have the text and the other would not ...

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!

12 Apr 2009, 10:19 PM
#17
jjfloss avatar

jjfloss

New Zenner

Join Date:
Apr 2009
Posts:
1
Plugin Contributions:
0

Re: Catagory Description not showing

I am having the same exact issue. I do have a custom template installed and when my categories are empty, they will display the description but once i add a product the description disappears. Any luck finding a fix for this?

13 Apr 2009, 2:47 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Catagory Description not showing

Check your template ... there are a lot of custom ones that mark out the oddest things ...

A search with the Developers Tool Kit for:
categories_description

might help spot if this is commented out ...

Also check your View Source ... if you see the description in there, then you have something in the stylesheet hiding it ...

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!

14 Apr 2009, 3:50 PM
#19
sadfurry avatar

sadfurry

New Zenner

Join Date:
Jun 2007
Posts:
38
Plugin Contributions:
0

Re: Catagory Description not showing

This has just got even more strange, because one catagory IS showing the catagory description and it does have items in that catagory:(

14 Apr 2009, 4:12 PM
#20
ajeh avatar

ajeh

Oba-san

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

Re: Catagory Description not showing

That is the point of my comment that I added to the code ...

The code runs two ways based on is there a categories_description or isn't there ...

One of two files are running:
/includes/templates/template_default/templates/tpl_index_categories.php

/includes/templates/template_default/templates/tpl_index_product_list.php

You are not getting the categories_description based on a change to the file ...

Check the files to see if you have the code or if it is commented out ... be sure to check your template files too for overrides of these ...

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!