I have an issue with custom template with Woocommerce.
When i check my page (archive-product.php) when i’m a visitor, I see my custom template.
But if I see with a administrator, the Archive-product.php in the woocommerce plugin template is displayed.
I don’t use woocommerce.php in my theme.
**
I have copy plugins/woocommerce/templates/*
to myTheme/woocommerce/*
Any idea with this strange issue?
thank you!
I’m pretty sure that you need a woocommerce.php in your template folder. The woocommerce.php serves to display WC taxonomies pages etc.
For a better understanding take a look at the official docs page: https://docs.woothemes.com/document/third-party-custom-theme-compatibility/
It’s because WC needs the “woocommerce_content()” to display special WC pages.
You should also declare that your theme supports WC. Use this simple Snippet in your functions.php (also described in the link above):