I need to display on the main page of the store only parent category of goods, and this I did, I comment output code sub-categories in the template.
Now the problem is that - when you switch to any category of goods, I need to show only its sub categories, parent no. And so with all levels of sub categories, how to realize it?
I understand this code
<?php wpsc_start_category_query(array('category_group'=> 1, 'show_thumbnails'=> 1)); ?>
<a href="<?php wpsc_print_category_url();?>" title="<?php wpsc_print_category_name();?>">
<?php wpsc_print_category_image(); ?>
</a>
wpsc_print_category_name();?>
<?php wpsc_end_category_query(); ?>
show categories. How to find a sub category of the current category to which the user is located and bring them out.
What functions to use it, and how a paste it to this code?
Sorry for my English, thanks.