show subcategories links in category content

heavyn

Avatar: heavyn

2007-02-09 13:47

it's possible to show subcategories links in category content?
if I'm browsing category I want see subcategories links in left menu and also in category content

thank you!

» Quick.Cart v1.x

treewood (OpenSolution)

Avatar: treewood

2007-02-09 14:29

heavyn - subcategory links in category content shows when You choose category content under full description

heavyn

Avatar: heavyn

2007-02-09 15:17

sorry, but I don't understand
I have category content as full description
I want to do this
http://www.magnetart.cz/pic.jpg

treewood (OpenSolution)

Avatar: treewood

2007-02-09 15:53

heavyn - oh ok i understand. You need to know PHP and HTML.
1. edit actions_client.php/products.php
2. find $sCategoryDesc = $tpl->tbHtml( 'products_category.tpl', $sBlock );
3. add something like this:
$sSubcategories = listCategoriesChildren( $iCategory, 'contents_more.tpl', true );
$sCategoryDesc = $tpl->tbHtml( 'products_category.tpl', $sBlock );
4. edit templates/products_category.tpl
5. add after every $aData[sDescriptionFull] something like this:
$sSubcategories

Works?

heavyn

Avatar: heavyn

2007-02-16 12:49

this is not optimal, this created links forward me only to full descripton of subcategory,its not the same as links in left menu
i dont know php :/

treewood (OpenSolution)

Avatar: treewood

2007-02-16 18:56

heavyn - then create another file and copy contents_more.tpl to this new file. after change links from:
?p=p_$aList[iCategory]&sName=$aList[sNameUrl]
to:
?p=productsList&iCategory=$aList[iCategory]&sName=$aList[sNameUrl]

And after change to new file name here:
$sSubcategories = listCategoriesChildren( $iCategory, 'contents_more.tpl', true );

heavyn

Avatar: heavyn

2007-03-14 10:22

it works
thank you

Back to top
about us | contact