http://forum.opencart.com/viewtopic.php?f=2&t=36519
ATTENTION! CURRENTLY, THIS SCRIPT WILL UPGRADE STORES THAT DO NOT USE OPTIONS OR THAT DO NOT CARE ABOUT THE FEW OPTIONS THEY HAVE. THE SCRIPT WILL RETAIN ALL YOUR EXISTING DATABASE DATA FOR CATEGORIES, PRODUCT, CUSTOMERS, ORDERS, ETC.
HOWEVER, IT WILL BLOW AWAY ANY EXISTING PRODUCT OPTIONS!
DO NOT USE THIS SCRIPT IF YOU HAVE A LOT OF PRODUCT OPTIONS AND NEED TO HAVE THEM CONVERTED TO THE NEW SYSTEM. I AM STILL WORKING ON A VERSION THAT CONVERTS THE OPTIONS. BE PATIENT AS IT IS NOT EASY!
AGAIN, THIS SCRIPT IS MEANT FOR 1.4.x STORES THAT HAVE NO OPTIONS OR DON'T CARE ABOUT THEIR EXISTING OPTIONS! PREVIOUS ORDERS WITH PRODUCTS THAT HAVE OPTIONS WILL JUST APPEAR LIKE PRODUCTS WITH NO OPTIONS, BUT THE ORDER TOTALS WILL NOT BE AFFECTED.
If you get an error that looks like this:
Code: Select all
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/udimore/public_html/install/upgrade-14x-to-15x.no-opt.php on line 77
If you get an error that looks like this:
Code: Select all
Could not execute this query: DELETE FROM ocextension WHERE `type` = 'module' AND `key` = 'currency'; Unknown column 'key' in 'where clause'
About this script:
================
The purpose of this script is to allow you to convert your 1.4.x store to 1.5.x without losing database data (orders, products, customers, stores, categories, etc.
- This is a script that I've tested a handful of times using a 1.4.9.5 default store and upgrading to 1.5.0.3. I've not tested this with 1.5.0.4 but do not think there were any db changes for 1.5.0.4 so it should work just fine.
- This script uses the same upgrade basis as the last few versions, so it should allow converting from ANY 1.3.x version to 1.5.0.x. That means if you have 1.3.2 or 1.4.0 or 1.4.4 or 1.4.8 or 1.4.9, etc... you SHOULD be able to convert to 1.5.0
- The usual rules of upgrading still apply, and with even more of an impact of course. 3rd party mods will need to be updated, themes will be reset to default, and in this case, all of your module positions will be reset as the module system has changed.
- This package comes with 3 files
1.4.x-to-1.5.x-upgrade-steps.txt
READ THIS FILE! You must use this file and read it carefully step by step to perform the upgrade!
upgrade-14x-to-15x.no-opt.php
Call this script in your browser like:upgrade-14x-to-15x.no-opt.sqlCode: Select all
http://mystore.com/install/upgrade-14x-to-15x.no-opt.php
This file is called by the script. DO NOT TRY TO RUN THIS FILE MANUALLY IN PHPMYADMIN!!
POST ANY ISSUES IN THIS THREAD
RUNNING THE SCRIPT MORE THAN ONCE WILL LIKELY RESULT IN A LOT OF ERRORS, NOT NECESSARILY IMPORTANT AS MOST OF THEM SHOULD BE WARNINGS THAT TABLES AND COLUMNS NO LONGER EXIST AFTER THE CHANGE.[/s]