VM 2.0.26d
Joomla 2.5.17
Scenario:
Run the VM2 Migration tool with "everything" option selected".
Rerun the migration until it reports " Migration finished"
Issue:
In the Virtuemart back end select Shop-> Shop -> Vendor Tab
Confirm that Image Information is blank and Vendor Information display image not found or similar
The problem is that portVendor() does not migrate the links to the vendor image to the Vendor
Solution
Make to following 3 line modification to portVendor() in migrator.php
$this->_db->setQuery( 'SELECT virtuemart_currency_id FROM `#__virtuemart_currencies` WHERE `currency_code_3` = "'. $vendor['vendor_currency'].'" ' );
$vendor['vendor_currency']= $this->_db->loadResult();
// MJB add the following lines to link vendor image to Vendor
if(!empty($vendor['vendor_full_image'])){
$vendor['virtuemart_media_id'] = $this->_getMediaIdByName($vendor['vendor_full_image'],'vendor');
}
$vendorModel = VmModel::getModel('vendor');
$vendorId = $vendorModel->store($vendor);
Affected files:
administrator/components/com_virtuemart/helpers/migrator.php