News:

Looking for documentation? Take a look on our wiki

Main Menu

child categories no show description

Started by weblabs, November 06, 2012, 14:26:30 PM

Previous topic - Next topic

weblabs

How do show the description in child categories?

[attachment cleanup by admin]

bytelord

Hello,

You shoud edit your custom template category/default.php and add the following code when child categories are printed out after 112 in default template

<div class="category_description">
<?php echo $category->category_description?>
</div>


Some more information regarding category/product fields:
Category Fields: http://forum.virtuemart.net/index.php?topic=97744.0
Product Fields: http://forum.virtuemart.net/index.php?topic=92756.0
$this vs $product: http://forum.virtuemart.net/index.php?topic=100696.0

Regards




Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

weblabs

Sorry, my mistake, i try "" <?php echo $this->category->category_description ; ?> ""

bytelord

Hello,

$this is for the current category ... but for the loop that printouts the children categories the right one is $category.

So, you resolve it i suppose :)

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

weblabs