I have a custom template for a woocommerce category page to only display the categories. I have got the system to get a list of the child categories (by using get_term_chi
get_term_chi
Sorted it, here's the code I used:
$thumbnail_id = get_woocommerce_term_meta( $cat->term_id, 'thumbnail_id', true ); $image = wp_get_attachment_url( $thumbnail_id );