https://www.skyverge.com/blog/override-woocommerce-template-file-within-a-plugin/
The normal WooCommerce template loader searches the following locations in order, until a match is found:
- your theme / template path / template name
- your theme / template name
- default path / template name
We’re going to alter this slightly by injecting a search for the template within our own custom plugin (step 3 below), before finally defaulting to the WooCommerce core templates directory: