WP – Ecommerce – Display the Current Category’s Parent Categorys Name

Here is the code you need to display the Parent Category of the Current Category you are viewing in WP E Commerce

$term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) );
$parent = get_term($term->parent, get_query_var(‘taxonomy’) );
echo $parent->name;

1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 2.83 out of 5)