1. create new shop with new version and new database in a subdirectory (if developed on clients server)
2. create new database
3. install the new shop completely
4. backup the old database (can be done before 1.)
5. compare old database with new structure
6. adjust new database tables comparing the fields from old (new fields not needed afterwards can be deleted when all is done)
6.a check the table entries
7. import the database backup (from step 4)
8 check shop and if all database tables are correct imported
9. install additional extensions (if wanted/needed)
10. install new theme (if wanted/needed)
11. check all again
12. set old shop into maintainance mode (because otherwise your database will have new entries [orders] you will not have in the the new shop)
13. backup the old database
14. import the old database into the enw shop
15. remove additonal fields in new database (see 6.)
A. if 11. is okay, either backup all files from old shop, delete all files from old shop and copy files from new shop into old directory
B. adjust the 2 config.php
A. if 11. is okay, redirect the shop to the new disrectory via your server panel or .htaccess
This way may sound for much work, well need not more than 1-2 hours.
But not one headache after upgrading.
And the benedfit is, your liveshop is running while you deploy your new shop.
Because it may need a longer time as assumed ..
I. never touch a runnning shop!
II. always backup, backup and work with the backup
Forum Rules [en]: viewtopic.php?f=176&t=200480
Commercial Request: viewforum.php?f=88
Dedicated Support: https://dedicated.opencart.com/
Marketplace Support: https://www.opencart.com/index.php?rout ... rt/support
So this is how I would proceed with testing if you can jump to the latest version, its actually not all that difficult and all of the
Create a new subdomain (in a separate directory as in the previous post).
Create a new blank database
Create a new database user with appropriate permissions to use the new database.
Create a new ftp user for the sub domain
Backup Live website Database
"Backup" (all) Live website Files (everything inside the web path which could be public_html www web whatever yours may be). I say back up because all you really want is a copy, if this doesnt work you wont need it afterward.
Upload backup to subdomain using new ftp user
Upload Database (import sql) into new database
Open the browser and test your subdomain, if all is well you should just see your website as is would be on your live site, links will click to the old so don't worry about that.
open the two config files for catalog and admin (in backup files)
change the parts where your domain is listed to match the new subdomain
change the dbuser, pass and database to match your new settings from above.
save, upload backup code.
Test website, you should see no change, but now the links should work as expected and keep you in the subdomain rather than taking you to the live site.
Now, disable any and all extensions/modifcations (maybe you will need updated versions from oc marketplace, in fact I can almost guarantee it)
Now that you have the setup you of the way, here comes the really exciting part, get ready...
Upload the version of opencart that you want to your subdomain - follow documented update procedures.
Test your updated subdomain version of your website (FULLY), it will be vanilla if it worked but if it worked, well you're good to go.
Now you just make it changes to your live website.
Put your live site into maintenance mode to prevent users putting in orders/logging in and possibly seeing errors)
Take new backups of your live site (files and database as before, keep these somewhere safe and secure).
Disable all extensions/mods
Upload the upgrade to the live website
Follow update procedure
Re-enable modules/extensions, one at a time, I know its tedious but doing it this way you can test each one is working as expected and if not, either find an update or just remove it until you can modify it to work with the latest code version)
Test live site fully (it should be the same, but its always safer to test it out)
Once you are sure that its all working you can disable maintenance mode and your upgrade should be complete, customers may find bugs, the best thing you can do now (or before actually so customers don't get spooked by the sudden site change) is let your customers know that there may be bugs and how they should report them to you, might I suggest a new email account, non public used only for this so you know as soon as you see an email in that inbox you have a priority job to work on.
If you changes to the live upgrade does not go to plan then you have your nice safe and secure backups to revert all the changes.
Delete all files from the webroot of your live site
Delete the tables from your live database
Upload you backup files to your live site
Import your backup of your live Database
login to your admin panel and disable maintenance mode.
Your website is back as it was before any changes were made.
As long as you follow this to the letter, you should not have do anything that cannot be corrected or reverted to your website, but as i said, make sure your customers know before you do it. I would give 24 hours notice, just email with a time maintenance will start and let them know your website will be unavailable for say 2-4 hours to be on the cautious side. In all honesty this should take about an hour max depending on how comfortable you are with the tools you need to use.
If I were you, I will use an automated shopping cart migration service to migrate my data. Why?
1. It's cheaper
Everything that was made to be automatic has cheaper price than that was made manually. Data migration is no exception. The cost to migrate your data from the old OpenCart version to the newer one is only from 59$, depending on the total number of entities you want to migration.
2. It's faster
If you migrate things manually, it may take you at least 1 week. However, when you go with the migration tool, it only takes you a few hours. Your precious time is now saved for more important missions.
3. You have a whole support team who are specialized in shopping cart migration by your side whenever something goes off the track.
4. It's much easier
Well, using an automated tool to migrate your data is super easy, you can get your job done with only 3 steps.
1. Input your Source and Target cart information (something like your store's URL)
2. Select entities you want to migrate
3. Wait for the migration to finish
I found a fairly detailed instruction for you here: https://litextension.com/how-litextensi ... ncart.html. Check it out!
You dont need:
Turn on the maintenance mode
backup the data (you can do but the migration is 100% safe)
pay high cost the migration.
Besides, you will be provided many options to extend your migration possibility.
You can try a free demo at https://litextension.com/ and ask support everything you need for the data migration. Hope it helps.
Users browsing this forum: No registered users and 3 guests