@rocky
thanks for help! Your post
http://www.prestasho...post__p__321549 is great and it helped me much. But there is one little issue related more to this forum than to your code. Code snippet in this forum is stripping your code from ul's and li's html tags so sometimes is hard to understand it for the first time.
One more thing: when I go to product page all categories are visible like in standard blockcategories. It is possible to get same effect in product page like in category and product-list pages?
edit:
I've figured it out myself.
I've changed:
{foreach from=$node.children item=child}{if $child.id == $smarty.get.id_category}{assign var='childSelected' value='1'}{/if}{/foreach}
{if $page_name != 'category' OR $depth != 1 OR $node.id == $smarty.get.id_category OR $childSelected}
to
{foreach from=$node.children item=child}{if $child.id == $currentCategoryId}{assign var='childSelected' value='1'}{/if}{/foreach}
{if $depth != 1 OR $node.id == $currentCategoryId OR $childSelected}
and now itis working both in categories and in product pages.
btw I'm using v 1.3.1
Edited by tip98, 21 August 2011 - 03:37 PM.