I had to help a client with a WooCommerce problem with product catalog theme overrides.
I have some things to add to their page on Template Structure + overriding templates via a theme:
- The resulting rendered theme files loaded by default are not the same as what would be loaded if you copy over the included files from their
templates
directory. - If a page like
content-single-product.php
gets overridden by a local version, thensingle-product.php
needs to be copied over as well. This ate up a lot of time trying to diagnose, and I had to trace through the WooCommerce source code to even get a hint that I had to do this. - There is no equivalent of WordPress’ Template Hierarchy page made for WooCommerce templates.