When a new version of WooCommerce is released, we sometimes update the default templates.
This applies to major releases (WooCommerce 2.2 and 2.6) but also to minor releases (WooCommerce 2.3.9), and themes may break because they override WooCommerce’s default templates. Most theme authors fix their themes in a timely manner, so you only need to update your theme to get the updated templates.
If the themes are not updated, or if you modified templates or are using a child theme, you need to update the templates yourself.
How to update outdated templates
We need to determine what templates to update, make a backup of old templates and then restore any customizations.
- Go to: WooCommerce > 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. For example, the template cart-shipping.php is outdated:
- Save a backup of the outdated template.
- Copy the default template from wp-content/plugins/woocommerce/templates/[path-to-the-template] and paste it in your theme folder found at: wp-content/themes/[path-to-theme]
- Open the template you pasted into the theme folder with a text editor of choice, such as Notepad++, and replicate any changes that you had to the previous template in your new, updated template file.
We recognize that it can be time consuming. This is why we try to avoid changing WooCommerce templates, but sometimes it is wise to break backwards compatibility.
FAQ ↑ Back to top
Where can I find the latest version of WooCommerce? ↑ Back to top
If you’re looking for the default templates to use for updating, you want to use the latest version of WooCommerce. There are a few easy ways to get the templates: