I’m gonna give this a go later today - I’ve had to import a lot of images for my store and I was disappointed when I thought I couldn’t do it with Dataflow. I just know it’s gonna work perfectly!
all file names are case sensitive… keep that in mind when creating your xml or csv database… it will work great but you need to be EXACT on everything from your headers to file names ect....
also the STORE header should be the store name you are trying to modify… if you leave it admin you might miss out on things..
I have imported tons of files with pictures, picture descriptions and all that good stuff.... from versions 2.something all the way to 4.11
Unfortunately the “trim” solution did not work for me—using Mage 1.4.0.1
Sorry to hear that. I’m not sure what else the issue might be. This basically solved all of my image import issues.
I should point out that this change is also required in 1.4.2. (My client just decided to update to this new version, so I checked the new code base for this issue.) So, if you update your Magento installation, you might want to re-apply this change there as well.
public function addImageToMediaGallery($file, $mediaAttribute=null, $move=false, $exclude=true)
BY
public function addImageToMediaGallery($file, $mediaAttribute=null, $move=false, $exclude=false)
it can import your data in xml or csv without the box “exlcure” checked
but my images (small_image) does not appear. Why? Please help me. Thanks
Thanks guys.
The following steps basically solved my problem to import images.
public function addImageToMediaGallery($file, $mediaAttribute=null, $move=false, $exclude=false)
...
$mediaGalleryAttribute->getBackend()->addImage($this, trim( $file), $mediaAttribute, $move, $exclude);
The only problem now I have is importing multiple images in thumbnail section.
I already tried the following formats in thumbnail column but not working.
Hi everyone, I’m importing the images programmatically, using addImageToMediaGallery function on each of the products. It works fine but I have a problem that it only imports images to each product, but it doesn’t set any image as current so I still need to enter each product and set the current image.
Is there any procedure I can use for that? Because traversing each product is not an option since there is about 2000 of them.
Hi everyone, I’m importing the images programmatically, using addImageToMediaGallery function on each of the products. It works fine but I have a problem that it only imports images to each product, but it doesn’t set any image as current so I still need to enter each product and set the current image.
Is there any procedure I can use for that? Because traversing each product is not an option since there is about 2000 of them.
Im having this exact issue. Let me know if you come across a fix.
I have a fewMagento installs and import structure works fine with
“/” before image in csv
Lower case file names
upload to media/import
This is on 14.1.1 (Holding off upgrade due to template issue)
Now a new install with 15.0.1 the method for importing the images does not work any more , has any one else experienced this with the new install 15.0.1