问题
Overriding Woocommerce files from my child theme is not working at all. I am sure everything is 100% right, really frustrating. I am following every step in a video at this page:
https://docs.woocommerce.com/document/template-structure/
回答1:
Ah, it was so simple. Go to this path:
WP Dashboard -> WooCommerce -> System Status -> Tools
and then uncheck the "Template debug mode":
回答2:
If someone is still interested in this topic I have found what was causing this issue on my theme. Just add the theme support for Woocommerce in functions.php as described on Github.
https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes
回答3:
Since the Template Debug Mode is no longer an option in Woocommerce
system tools, this is what worked for me.
Just add this line to your wp_config.php
file:
define('WC_TEMPLATE_DEBUG_MODE', false);
来源:https://stackoverflow.com/questions/38902568/overriding-woocommerce-child-theme-not-working