Here's how to do it with the DataFlow Importer for Magento 1.6.1, got it from here
- So you don't edit core files, make a copy of app/code/local/Mage/Catalog/Model/Convert/Adapter/Product.php into app/code/local/Mage/Catalog/Model/Convert/Adapter/
- Edit app/code/local/Mage/Catalog/Model/Convert/Adapter/Product.php and add the following after line 799:
if (isset($importData['media_gallery']) && !empty($importData['media_gallery'])) {
$x = explode(',', $importData['media_gallery']);
foreach ($x as $file) {
$imagesToAdd[] = array('file' => trim($file));
}
$mediaGalleryBackendModel->addImagesWithDifferentMediaAttributes(
$product,
$imagesToAdd, Mage::getBaseDir('media') . DS . 'import',
false,
false
);
}
...so you end up with this:
793 $addedFilesCorrespondence = $mediaGalleryBackendModel->addImagesWithDifferentMediaAttributes(
794 $product,
795 $arrayToMassAdd, Mage::getBaseDir('media') . DS . 'import',
796 false,
797 false
798 );
799 /* http://www.magentocommerce.com/boards/viewthread/224928/P30/#t403196 */
800 if (isset($importData['media_gallery']) && !empty($importData['media_gallery'])) {
801 $x = explode(',', $importData['media_gallery']);
802 foreach ($x as $file) {
803 $imagesToAdd[] = array('file' => trim($file));
804 }
805
806 $mediaGalleryBackendModel->addImagesWithDifferentMediaAttributes(
807 $product,
808 $imagesToAdd, Mage::getBaseDir('media') . DS . 'import',
809 false,
810 false
811 );
812 }
If your CSV file, add a column called *media_gallery*, and put your other images in /media/import:
media_gallery
-------------
/s/e/second_image.png, /t/h/third_image.png,/f/o/fourth_image.png