I’m having some template hierarchy issues trying to add woocommerce to a custom theme I made for a client. The site isn’t using the templates it should be. The shop page the plugin generates is using ‘page.php’ instead of ‘archive-product.php’ and products are using ‘single.php’ instead of ‘single-product.php’. I created a folder called woocommerce in my theme folder and copied those two WC template files over, but they’re not being used. I used a function to force using the right templates, which worked but now the products don’t appear on the shop page like they did when the wrong templates were being used. I’ve never worked with WC before, so is there something basic I’ve missed?
Things I’ve tried:
- switching to a default theme
- turning off all plugins
- double checking the folder structure (the files are in /mytheme/woocommerce/)
- double checking the products are published
- adding a debug line to the template echo
Products found!
which echoes that they are being found (just not showing)
- checked the console for CSS or JS Issues
- confirmed that the correct page is assigned as the Shop Page