Virtuemart Migration From 1.0 to 1.1

While working on a new website for an existing customer I stumbled upon a problem which could have potentially taken me over 6 hours to complete. As it was the upgrade of their website was already quite extensive and had taken a fair amount of time. One of the major upgrades that was going to take place on the somewhat dated website was the Virtuemart component. So how big was this and what did I need to do to ensure that the Virtuemart Migration from 1.0 to 1.1 was successful? This site had approximately 1000 orders, 700 customers and about 750 users. There was a large amount of products (approx 500) which contained a mix of downloadable products and physical products. I was in a predicament where I did not want to spend much time on the moving of products.

I had essentially 2 options; neither of which was pretty from a labour standpoint. The first was to manually create/move each category,product and extras from old site to the new one. If you do the math of the above information you can see how this is not really a viable option. The second option was what seemed to be a better idea and a lot quicker. This included migrating all data from the old site to the new and then uploading a copy of all the images/downloadable files to the new development area. This was obviously a lot better choice and one that should only take about an hour.

I naturally opted for the second choice. This choice was something that I had no real time allocation for as I had to do what you have been probably doing for the last couple of hours. Thats right, searching google, browsing forums and visiting Virtuemart’s website for a couple of hours. I had to change my thought patterns to complete a search that would hopefully find a solution I could work with.

The core issue:

  • Joomla 1.0.15 with virtuemart 1.0.9 (Source)
  • Joomla 1.1.15 with virtuemart 1.1.4 (Target)
  • No firm / easy migration plan or solution

The solution:

Install a clean copy of Joomla 1.5 and the latest version of Virtuemart 1.1.x. Once this is done grab yourself a copy of the component mtwMigrator. It is a free component and works a treat. Total download size is about 400kb so it is a tiny component. Once you have downloaded it install mtwMigrator in to your new Joomla install.

Once you have completed the install go to components -> mtwMigrator. Once the page has loaded go to “Global Configuration”. Enter the database name, username and password for the source (Old Joomla) install and place it in the relative fields. Select the information you want to transfer. Click Save. Click “Start Migration” and within a few minutes it will have completely moved all the content, categories, contacts and virtuemart information to your new install.

After completing the content migration you will need to manually copy across the pictures for the categories and products to the new install. This will ensure you do not need to manually reupload the images. That is all you have to do.

If you get stuck and need assistance post a comment here and I will see how I can help out.