Template updates and changes
We may sometimes update the default templates when a new version of Classic Commerce is released.
Our Releases posts will list in the changelog any template file changes that may have been introduced.
You may occasionally need to update templates yourself or contact the theme author for an update. Most theme authors fix themes in a timely manner, so you should only need to update your theme to get the updated templates. However, you may need to update templates yourself if you modified templates or are using a child theme.
As a last resort you may need to select and use a different theme that already uses current Classic Commerce templates.
How to update outdated templates
You will need to determine what templates to update, make a backup of old templates and then restore any customisations.
- Go to: Classic Commerce > 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, thsi message shows the templates
archive-product.php
andcontent-product.php
are outdated:
- Save a backup of the outdated template.
- Copy the default template from
wp-content/plugins/classic-commerce/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 Atom, Visual Code, BBEdit, 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 Classic Commerce templates.
Where can I find the latest version of Classic Commerce?
If you’re looking for the default templates to use for updating, you will want to use the latest version of Classic Commerce. There are a few easy ways to get the templates:
- Access the files via FTP if your current Classic Commerce installation is up to date
- Download the latest version from the home page of the classiccommerce.cc site
- Download from the GitHub repository.