Hello,
Sorry to say there is no option in theme settings to show category in the shopping cart widget.
To show category on cart page add this below code in function.php of the child theme:
add_filter( 'woocommerce_cart_item_name', 'pk_cart_item_category', 9999, 3 );
function pk_cart_item_category( $name, $cart_item, $cart_item_key ) {
$product = $cart_item['data'];
if ( $product->is_type( 'variation' ) ) {
$product = wc_get_product( $product->get_parent_id() );
}
$cat_ids = $product->get_category_ids();
if ( $cat_ids ) $name .= '<br>' . wc_get_product_category_list( $product->get_id(), ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', count( $cat_ids ), 'woocommerce' ) . ' ', '</span>' );
return $name;
}
Best Regards