Located in: Located in: category.functions.php
Version Introduced: 3.8
Accepted Parameters: $category_id – can be left out if used within the category loop.

Description: This template tag will return the category name it must be used within the category loop unless a Category Id is supplied.

Note: This function only returns the value if you want to print it to your template use an echo function.

[php] <?php if(wpsc_show_category_thumbnails()) : ?>
<img src="<?php echo wpsc_category_image(); ?>" alt="<?php echo wpsc_category_name(); ?>" />
<?php endif; ?>[/php]