How to upgrade Commerce

Issue

  • Is it possible to upgrade Commerce version, and if so, how would this be done?

Environment

  • Liferay DXP 7.1+
  • Liferay Commerce

Resolution:

Follow these points below for Commerce upgrade:

  1. Shut down Liferay.
  2. Delete the osgi/state folder in Liferay Home.
  3. Delete Liferay Commerce - API.lpkg and Liferay Commerce - Impl.lpkg from osgi/marketplace.
  4. Place the new .lpkg in the Deploy folder.
  5. Start Liferay. When prompted by the log, shut down and restart again.

Once you’ve completed these steps, it’s a best practice to initiate a full reindex by going to Control Panel → Configuration → Search and reindex all search indexes.

If you remove the Commerce package it won't remove the data from your database, therefore your state should be the same after deploying the new Commerce version.

Additional Information

The following article also helpful for this topic:
Commerce 2.0.0 Release Highlights

And also please check the Compatibility Matrix in order to know which Commerce version compatible with your current DXP version.

Was this article helpful?
0 out of 0 found this helpful