How to update outdated templates

We need to determine what templates to update, make a backup of old templates and then restore any customizations.

  1. Go toWooCommerce > 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. For example, the templates form-pay.php and form-login.phph are outdated:
  1. Save a backup of the outdated template.
  2. 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]
  3. Open the template you pasted into the theme folder with a text editor of choice, such as AtomVisual CodeBBEditNotepad++, 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 backward compatibility.