Normally we can add WooCommerce files to the theme so that it will override the default WooCommerce files.
But I am developing a plugin which is having some extra feature to the WooCommerce page and I want it to override the theme’s WooCommerce files with its own files.
For now, I am adding the modified code of my plugin to the theme itself for making it work. But I want those files to run directly from the plugin so that I don’t need to add those files each time I change the theme.
My main concern is the single product page (both simple and variable product).
Any helpful tips?
Read more here:: Override theme’s WooCommerce file