Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 2 of 4
How to import images in 1.5.1? 
 
pollence
Member
 
Avatar
Total Posts:  55
Joined:  2009-05-19
Australia
 

Hello gammafx

can you provide me sample csv for this /? thanks in advance.. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
gammafx
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2010-04-25
 
pollence - 04 April 2011 07:46 PM

Hello gammafx

can you provide me sample csv for this /? thanks in advance.. smile

Hey Ravi,

Here is the CSV for this particular example.

File Attachments
import_images.zip  (File Size: 1KB - Downloads: 788)
 
Magento Community Magento Community
Magento Community
Magento Community
 
pgulikers
Jr. Member
 
Total Posts:  27
Joined:  2009-02-21
 

This is cause by $this->_imagefields being deprecated since 1.5.0.0
Quick solution is adding this line:

$this -> _imageFields = array('image','small_image','thumbnail');

at the top of your custom productimport.php file and you should see the images again after importing.

Cheers!

 
Magento Community Magento Community
Magento Community
Magento Community
 
erikstr
Jr. Member
 
Total Posts:  9
Joined:  2011-01-01
 

@PGU:

Which productimport.php file do you mean? There is no such file in 1.51 ...

I use the new and fast import function of 1.5+ instead of the DataFlow profiles.

Could we add the array definition to some other php file?

Thanks in advance,
Erik

 
Magento Community Magento Community
Magento Community
Magento Community
 
SDFANTINI
Jr. Member
 
Total Posts:  30
Joined:  2009-02-07
 

Hi all, any news about that issue?

i have made it to attache images to my products imported with new import/export features by doing :

/img/image_name.jpg

BUT
1. /img --> /magento_root_folder/media/catalog/product/img
2. all the images are not imported into default image folder (eg. /product/1/1/1198.jpg)

so what can we do?

thank you
Simone

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

Magenton 1.5.1 appears to be ignoring the gallery column on import. I’m hoping someone out there provides a patch for it…

 
Magento Community Magento Community
Magento Community
Magento Community
 
usauggs
Jr. Member
 
Total Posts:  26
Joined:  2009-08-23
 
PGU - 13 April 2011 10:49 AM

This is cause by $this->_imagefields being deprecated since 1.5.0.0
Quick solution is adding this line:

$this -> _imageFields = array('image','small_image','thumbnail');

at the top of your custom productimport.php file and you should see the images again after importing.

Cheers!

I tried, but it doesn’t work.  I ‘m using the same productimport.php file for 1.4.1.

Will

 
Magento Community Magento Community
Magento Community
Magento Community
 
usauggs
Jr. Member
 
Total Posts:  26
Joined:  2009-08-23
 
gammafx - 24 March 2011 04:58 PM

Upgraded to Magento ver. 1.5.1.0-beta1 - the issue still persists. However, there is a workaround now… You can create a new import profile just for images and bring them in separately.  To do so follow the steps below:

go to System > Import/Export > Dataflow - Profiles.
Click Add New Profile.
Setup a profile and select NO for “Original Magento attribute names in first row” (see attached screenshot)
Map the fields to the ones in your CSV
Save and Run the profile with your CSV

As long as the product is already imported the image CSV can just have a sku, image, thumbnail, small_image fields.

If the product does not exist, you’ll get an error on that line.

Hope this helps someone.

Thanks, it works.

Will

 
Magento Community Magento Community
Magento Community
Magento Community
 
jbg0
Jr. Member
 
Total Posts:  1
Joined:  2011-05-19
 

I’m running into that issue too, but it’s a little different,
I put my image (image.png) into /media/catalog/product/i/m/image.png
In my csv in the three fields (image, thumb and small) put /i/m/image.png
Everything is OK on frontend catalog grid/list and OK on frontend product page but in the back end, section images, there is nothing !
If someone has an idea
Regards
PS : SORRY: I’m using magento 1.5.1.0 community edtition and “simple” import tool
PS2: It’s working until I do a “save” on the product configuration page on backend, then the image disapear on the frontend ... very strange

 
Magento Community Magento Community
Magento Community
Magento Community
 
SDFANTINI
Jr. Member
 
Total Posts:  30
Joined:  2009-02-07
 

any news on this issue? Magento team is working on it?

please guys, help me.

thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
linuxconsult
Jr. Member
 
Total Posts:  17
Joined:  2010-03-02
 

Yeah, Just tried the gammafx images import method (with dataflow), it rocks smile working very well, great , it save me a lot of time

 
Magento Community Magento Community
Magento Community
Magento Community
 
SDFANTINI
Jr. Member
 
Total Posts:  30
Joined:  2009-02-07
 
gammafx - 24 March 2011 04:58 PM

Upgraded to Magento ver. 1.5.1.0-beta1 - the issue still persists. However, there is a workaround now… You can create a new import profile just for images and bring them in separately.  To do so follow the steps below:

go to System > Import/Export > Dataflow - Profiles.
Click Add New Profile.
Setup a profile and select NO for “Original Magento attribute names in first row” (see attached screenshot)
Map the fields to the ones in your CSV
Save and Run the profile with your CSV

As long as the product is already imported the image CSV can just have a sku, image, thumbnail, small_image fields.

If the product does not exist, you’ll get an error on that line.

Hope this helps someone.

Hi, i have done a new profile following your indication. so after i run the “new” import without images i just wait for the product to be imported. after this, i go to import profiles and run the new created profile with csv like you have attached.

i although get an error :

SKIP IMPORT ROW, IS NOT VALID VALUE “” for field “type”

..but i have no field called “type”

here are all my screenshots.

is there somethint that i miss?

also, do you kindly have a hack to disable duplicate image creation during import? if i run import 3 times, Magento 1.5.0.1 will triplicate the images in forlders!!

thank you
Simone

Image Attachments
GammaFX ADV profile setup.JPGGammaFX ADV profile IMPORT ERROR.JPGGammaFX CSV setup.JPG
 
Magento Community Magento Community
Magento Community
Magento Community
 
migueladobe
Jr. Member
 
Total Posts:  3
Joined:  2011-05-21
 

gammafx - I owe you like 90 beers for this documentation. You win, my thanks I was going to hire a kid to do some grunt work, but you saved me 25 tedious hours.

 
Magento Community Magento Community
Magento Community
Magento Community
 
gyrofly
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2009-06-12
 

gammafx - worked like a champ! Thank you much!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
erikstr
Jr. Member
 
Total Posts:  9
Joined:  2011-01-01
 

Hasn’t this issue been fixed in 1.6.0 alpha? Has anybody tried it?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 4