How do I fix WooCommerce outdated templates?
We need to determine what templates to update, make a backup of old templates and then restore any customizations. Go to: WooCommerce > Status > System Status. Scroll to the end of the page where there is a list of templates overridden by your theme/child theme and a warning message that they need to be updated.
Can I use WooCommerce with any theme?
WooCommerce will work with any theme by default but adding some extra support for the plugin so that it better fits your theme is very easy to do.
How to override templates in WooCommerce theme file?
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory. The copied file will now override the WooCommerce default template file.
Do you need to declare WooCommerce theme support in GitHub?
For Custom Templates. If you are a theme developer or using a theme with custom templates, you must declare WooCommerce theme support using the add_theme_support function. See Declaring WooCommerce Support in Themes at GitHub. If your theme has a woocommerce.php file, you will be unable to override the woocommerce/archive-product.php…
How to change the Order of locations scanned by WooCommerce?
To be able to change the order in which locations are scanned by WooCommerce loader we will have to use the ‘ woocommerce_locate_template ’ filter provided by WooCommerce. The following code can be written in any PHP file in your plugin folder.
Can you override a template in a theme?
See Declaring WooCommerce Support in Themes at GitHub. If your theme has a woocommerce.php file, you will be unable to override the woocommerce/archive-product.php custom template in your theme, as woocommerce.php has priority over other template files. This is intended to prevent display issues.