VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: weblabs on November 06, 2012, 14:26:30 PM

Title: child categories no show description
Post by: weblabs on November 06, 2012, 14:26:30 PM
How do show the description in child categories?

[attachment cleanup by admin]
Title: Re: child categories no show description
Post by: bytelord on November 06, 2012, 15:48:40 PM
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
Title: Re: child categories no show description
Post by: weblabs on November 06, 2012, 15:57:45 PM
Sorry, my mistake, i try "" <?php echo $this->category->category_description ; ?> ""
Title: Re: child categories no show description
Post by: bytelord on November 06, 2012, 16:09:04 PM
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
Title: Re: child categories no show description
Post by: weblabs on November 06, 2012, 16:33:51 PM
yes, is it ok. thx.