Hi,
- You go to Woocommerce -> Setting -> Product -> Display -> Default category display -> Select "Show Subcategories & products". After you select this option -> subcategories will display together product but the position isn't correct as you want. You will need to custom the archive-product.php file. (You need to do two things later: 1. Remove the position "subcategories" default. 2. Add to the position you want.)
- You need to use the Child Theme to custom for the archive-product.php.
1. Remove the position "subcategories" default: You remove this line: woocommerce_product_subcategories();
2. Add to the position you want: you can add this function to the functions.php of Child Theme:
add_action('yolo_before_archive_product','yolo_add_subcategories');
function yolo_add_subcategories(){
if(is_product_category() || is_product_tag()){?>
<?php woocommerce_product_subcategories();?>
<?php }
}?>
Hope it helps!.