Follow the procedure as in the atttached link:
https://forum.opencart.com/viewtopic.php?f=181&t=159898
1. Upgrade oc15x -> oc2200 with the custom install script provided
2. oc2200 -> oc2x and/or oc3x with the installation script in the official package