Astuces de l’import des Produits sous Magento - Frédéric Martinez. Magento: Import Multiple Images or Remove Images durring Batch Import. This article will detail how to adjust the Magento Batch Import (Dataflow) to allow uploading multiple gallery images, and also how to add a way to remove all images during Import/Update.
These are the accompaning files: (Please reference this file if you have any quetion about the code examples below. The WYSIWYG editor was messing things up. mainly “&’s” and “empty()’s” ) 1. Full Code Example First we are going to have to modify the the adapter used to save/update products during the import process. The file used is located here: “/app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php“. Magento: Import Multiple Images for Products Module. Update: If you are using Magento 1.5 or higher, please see my Revised Multiple Image Import Module post I still am confused as to why Magento hasn’t built-in the ability to upload multiple images for each product.
After scoping it out, finally, I discovered that the modification was quite simple. I haven’t put the module up on Magento Connect yet (not sure if I will), but here I will lay out how to do it, which for some of you may help you understand how modules work, if you don’t know already. I’ve seen some solutions out there that modify core code, some that just take a file and move it to your /app/code/local/ retaining the same directory structure, so as to just override the file.
I don’t recommend either of these methods (especially the first), as with a true module you are setting up a much better environment over time for this to last.