I am running:
- WordPress 5.4.1
- WooCommerce 4.1.1
I am writing a custom theme that overrides some of the WooCommerce templates by placing my own templates in: themes/my_theme/woocommerce/template-name.php
I have established that the shop page (home) uses archive-product.php and have successfully copied the one from plugins/woocommerce/templates/archive-product.php to my theme and made some minor HTML changes which work fine. There are no functional changes in my theme's copy, just some HTML.
There is an option to set the shop page to show categories instead of products:
Appearance > Customize > WooCommerce > Catalogue
Shop page display is now set to Show Categories
However the shop homepage seems to ignore this setting entirely. It seems odd that WooCommerce's own template does not honour this setting!
How do I find this setting and then show the categories (as thumbnails) on the shop homepage?
As a side note, the Storefront theme does honour the setting but they do not have the template archive-product.php. Everything in Storefront is highly obfuscated and after much debugging of it / trying to take it apart I cannot discover which template file it is using for the shop page.