A lightweight and free WordPress plugin that displays a three-level deep category tree for WooCommerce. The category tree can be added under Appearance -> Widgets or with the shortcode [wct]. Feel free to fork it, and modify it as you like.
Tested with WooCommerce versions 3.6 to 3.7. Probably also works with other versions.
- Download the plugin as a .zip file from GitHub;
- Unzip downloaded archive and upload the woocommerce-category-tree under your /wp-content/plugins/ directory
- Navigate to Dashboard ▸ Plugins
- Click Activate