Project

General

Profile

Upgrading VM1 to VM2 with provided packages » History » Version 11

Jörg Kiekebusch, 06/26/2012 08:10 PM

1 11 Jörg Kiekebusch
h1. Migrating VM1 to VM2 with provided packages
2 1 Max Milbers
3 11 Jörg Kiekebusch
*+Warning! - Do not upgrade/migrate a live VirtueMart 1.x.x shop to VirtueMart 2.x.x+*
4
5
VirtueMart 2.x.x is a completely new shopping cart system which is not compatible with VirtueMart 1.x.x!
6
Please read the information available in the VirtueMart forum at the link below first:
7
8
http://forum.virtuemart.net/index.php?topic=95513.msg313625#msg313625
9
10 5 Max Milbers
The order of steps in short:
11 1 Max Milbers
1. First uninstall all old vm extensions.
12 9 Max Milbers
2. Just install VM2 as upgrade over VM1 (just use the joomla install view)
13 11 Jörg Kiekebusch
4. Make your life easy and use the sample data.
14 5 Max Milbers
3. Copy your vm1 images into the desired folders (you can also adjust the paths in the config to your old vm folders)
15
4. Go to Migration and Tools in the backend.
16
5. Use on the second tab the option all and fire the button.
17 1 Max Milbers
18 5 Max Milbers
Very important! Depending on your shops size and your server, the migration process may stop. Then just repeat the migration. The migrator is resuming. This means the migrator stores the already ported data and does not import it twice. In theory you can press the buttons as often as you want.
19 1 Max Milbers
20
21 5 Max Milbers
Be sure that you *disabled/uninstalled ALL Vm1.1* related plugins and modules.
22 1 Max Milbers
23 5 Max Milbers
Just *install VM2 over VM1*. Dont uninstall VM1, or you would lose your data. The VM2 installer package is also suitable for upgrading. You need not to fear that your database data gets lost. Of course you should have a backup for emergency problems (you may use akeeba backup).
24
25 9 Max Milbers
The migrator *does not look on plugins, components or modules.* So when you have VM1 extensions, you need to check first if an update for this extension is available.
26 5 Max Milbers
27 7 Max Milbers
The best order is already used, when you use the option "all". It is just using all options from left to right. The sequel is media, shoppergroups, users, categories, manufacturerCategories, manufacturers, products, orders.
28 5 Max Milbers
29 10 Max Milbers
When you get an error while the migration process, nothing is lost. The tools provide buttons for this. Use the "Remove Virtuemart Tables" to delete all user generated data, after that use one of the migrationtools. The migrator is able to handle data which is already there. Because the migrator does not just copy the db data. The migrator gets the information of the old "_vm_" tables and adds them to VM2 using the VM2 models into the tables with prefix "_virtuemart_". This means for example, when your old products used the ids from 100-500, they will have the ids 1-401 in VM2.
30 1 Max Milbers
31 9 Max Milbers
The button "Reset all tables and install sampledata" deletes ALL "_virtuemart_" tables and reinstalls all tables and inserts the sample data. This is like a completly new install regarding the SQL. The button "Restore System Defaults" is kind of the opposite of "Remove Virtuemart Tables". It reinstalles all VM2 information, which is normally not user generated, this are states, countries, currency, orderstatus, adminmenu,...
32 2 Max Milbers
33
When you have trouble and getting strange errors, please check if your toolbar.virtuemart.php is deleted.