VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: iamalive on September 03, 2012, 14:06:55 PM

Title: Category description not showing when sub-categories are used
Post by: iamalive on September 03, 2012, 14:06:55 PM
Hi
my client has found the following issue:
He has a number of categories.
Only some of these categories have subcategories.
In the top level category where there are subcategoeires, the description text does not show.
Descriptions do show where there are no subcategories and it shows within the subcategories itself.

I'm using VM 2.0.10 and Joomla 2.5.6

Would appreciate help with this problem.

Regards
David
Title: Re: Category description not showing when sub-categories are used
Post by: Milbo on September 04, 2012, 00:41:45 AM
Interesting issue.

The problem is that we must solve it with an extra attribute, because sometimes you wanna show, sometimes not. Both ideas makes completly sense.
Title: Re: Category description not showing when sub-categories are used
Post by: iamalive on September 05, 2012, 16:12:14 PM
Hi

Thanks for your comment. Will this issue be tackled in the near future?

Do you have a workaround that I could apply in the meantime?

Thanks in advance

Regards
David
Title: Re: Category description not showing when sub-categories are used
Post by: Axis on October 19, 2012, 14:48:08 PM
David you can do that by altering the code.

First of all, I assume that the menu item that opens the category with the sub-categories is VirtueMart Categories Layout. (It is better for me with this choice because my parent category has no items inside).

You can display the description by copying the code that displays it from: components\com_virtuemart\views\category\tmpl\default.php
and paste it to the following file: components\com_virtuemart\views\categories\tmpl\default.php

For me the procedure was different because I use a purchased theme, however I think i'm pointing you towards the right direction.
Hope I helped, would be glad to help even  more.

George.