wpsc_parent_category_image

Located in: Located in: category.functions.php
Version Introduced: 3.8
Parameters Accepted: $show_thumbnails , $category_image , $width, $height, $grid=false, $show_name

Description: This template tag will get the parents category image URL and Link to the category, it will also check if its meant to display it or not. You would most likely want to use this tag within your category widget.

Code Example:
[php]
<a href="<?php echo $link; ?>" style="padding: 4px 4px 0 0; width:<?php echo $width; ?>px; height:<?php echo $height; ?>px;" title="<?php echo $curr_cat[‘name’]; ?>" class="wpsc_category_grid_item">
<?php wpsc_parent_category_image( $show_thumbnails, $category_image , $width, $height, true ,$show_name); ?>
</a>
[/php]