VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: jantabak on January 18, 2012, 12:04:11 PM

Title: Upgrade VM 1 >> 2: Incorrect VM Menu-item type in Main Menu
Post by: jantabak on January 18, 2012, 12:04:11 PM
I did the upgrade-thing form Joomla 1.5 to Joomla 1.7 and VM 1 to VM 2. It seems to work fine for almost everything, exept the VM-menu-items are not assigned to a VM-categories anymore.
In Menus >>> Main Menu ( default menu ) the collumn "Menu-itemtype" shows "Component 'com_virtuemart' does not exist".
When I assign it manualy to a VM-category the text in that collumn is "VirtueMart ยป VirtueMart Category Layout" for example.
So, it looks like the migration / upgrade did miss the VM-categories-menu-items.
Since this shop has about 420 categories it would be great to have an automated solution for it, or a how-to for MySql tables.
Does anybody know what to do from here?

Kind regards,
Jan
Title: Re: Upgrade VM 1 >> 2: Incorrect VM Menu-item type in Main Menu
Post by: PRO on January 18, 2012, 20:36:03 PM
You could try and do it via csv and mysql. BUT, it will take some preparation.

Title: Re: Upgrade VM 1 >> 2: Incorrect VM Menu-item type in Main Menu
Post by: jantabak on January 18, 2012, 23:34:21 PM
Thanks for your advice.
But that's a complex solution for me, I can't fix it in that way. During migration the important category-id of the VM-cat is placed in the prams-field of the table j17_menu.
In VM2 the links are build like index.php?option=com_virtuemart&view=category&virtuemart_category_id=14
After migration my wrong VM links are build like index.php?option=com_virtuemart
The wrong-links contain also in the params field {"product_id":"","category_id":77,"flypage":"","page":"","page_title":"","show_page_title":1,"pageclass_sfx":"","menu_image":"","secure":0}

So, I try to write a PHP-solution to filter the "category_id":77," out and rebuild the links as index.php?option=com_virtuemart&view=category&virtuemart_category_id=***

Or is there an easier solution?
Title: Re: Upgrade VM 1 >> 2: Incorrect VM Menu-item type in Main Menu
Post by: PRO on January 19, 2012, 00:19:20 AM
This can be done with about an hour or so of work. ( I dont know if thats too much or not, but migrating does take some work for large shops)

I have taken a look at both databases, and it can be done.




Title: Re: Upgrade VM 1 >> 2: Incorrect VM Menu-item type in Main Menu
Post by: adeel on October 18, 2014, 19:25:09 PM
I am having the same issue after migration , Plz If someone could help. ?