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
- If a page like
content-single-product.phpgets overridden by a local version, then
single-product.phpneeds 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.