Prerequisites

To run the release process, you must have the following:

  • Running at least PHP 8.1. (This means php -v must run without an alias and must show php 8.1 or higher.) Here are guidelines for upgrading to PHP 8.1 on a Mac.

  • Maintainer access to the Zen Cart github repository.

  • A local copy of the VersionStamper application.

  • Admin access to the main Zen Cart website

  • Admin access to the Version/Ping server (ping.zen-cart.com/dashboard).

  • an up to date copy of both the branch that you are releasing, and the main branch.

Once you have these things, you’re almost ready to begin.

Final Steps Before Beginning

Update the version.php files:

  1. Edit the file includes/version.php and update the version.

  2. Edit the file zc_install/includes/version.php and update the version.

  3. Edit the file zc_install/sql/install/mysql_zencart.sql and update the version number in the project_version and project_version_history tables.

  4. Edit the file zc_install/sql/updates/mysql_upgrade_zencart_158.sql and update the version number in the project_version and project_version_history tables.

  5. Ensure the version number in zc_install/includes/systemChecks.yml is the current version.

This can be confusing because sometimes the update letter is included and sometimes it isn’t. The thing to remember is that the database version does not include the letter, because the database doesn’t change just because of a patch release.

Here’s what should be in these files for version 1.5.7b:

File Version
includes/version.php define('PROJECT_VERSION_MINOR', '5.7b');
zc_install/includes/version.php define('PROJECT_VERSION_MINOR', '5.7b');
zc_install/sql/install/mysql_zencart.sql project_version_patch1 for the two Zen-Cart Main rows should be 5.7b
zc_install/sql/install/mysql_zencart.sql project_version_patch1 for the two Zen-Cart Database rows should be 5.7
zc_install/sql/updates/mysql_upgrade_zencart_157.sql Same two changes as install script above
zc_install/includes/systemChecks.yml Top checkDBVersion block should be version: '1.5.7'

There are other version related updates to do, but they’re not part of the build, so they are detailed in post release tasks.

Do copyright updates in the following files:

  1. docs/INSTALL.TXT
  2. docs/what’s new file for this release
  3. docs/changed files for this release



Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified October 27, 2022 by Scott C Wilson (c93e7803).