Missing Documentation

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, then single-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.

Published by The Machine

I am David. I will use this blog to inflict status reports of the progress of my continued enlightenment in all things: animal, vegetable, and mineral, with some World of Warcraft too. You may contact me at [name] at [domain]