Updates to CoCart, WooCommerce, WordPress and any other plugin are a fact of life. I work hard to make sure that each release provides an improvement, new features, fixes issues, compatibility, even tighten security to make CoCart do what it needs to do for your headless store.
So how do you update CoCart and without causing an issue?
While running a headless website is not the same as a regular WordPress website, it is still important to backup the infrastructure that allows you to run it.
The most efficient and reliable approach is to use an automated site backup service. There are many available that provide such a service including Jetpack. Besides not having to do anything manually, you benefit from:
- Unlimited storage space.
- Automated, regular backups of your entire site including your database, all content, plugins & themes, settings, and more.
- Instant restores so you can revert to a previous version with one click.
- Direct access to 24/7 expert support.
To do things manually, there are two parts to backing up your store:
- Backup your database! There are multiple ways to do this, see the Codex for your options to back up your content. Both manual and plugin options exist.
- Using SFTP head to your
wp-contentfolder to backup your theme and plugin files.
When testing updates it’s best to create a second WordPress install on your host with a restored backup of your live site to it. This will allow you to safely run test updates.
If all goes well during the staging tests, then you are ready to update your live site.
CoCart data update notice
A CoCart Database Update notice will display when you have upgraded/updated to a new version of CoCart and a database update is needed:
- Update CoCart Database starts the process of updating your database to match the plugin version you installed or updated to. The database organizes, contains, and stores your customers cart in session. It is an essential process.
- Learn more about updates will take you to this page to explain best practices pertaining to updating CoCart.
Ensure you have a backup in place and click the “Update CoCart Database” button. The update process will start:
- View progress will take you to the Scheduled Actions section and show the Pending actions for the update.
Once it is completed, the next time you view an admin page you will see the dismissable update complete banner:
- WordPress backups from the WordPress Codex.
- Jetpack’s backup and security services.
- Managing plugins from the WordPress Codex.