Page 1 of 1

Variations Importer deletes images from the /import folder

Posted: Thu Mar 04, 2010 4:51 am
by steve4000
Every time I use the tool to import product variations, it deletes the images from /product_images/import folder. The problem with this is that, a lot of my variations use the same image. For example, all my red shirts will use the same red t-shirt image. It doesn't matter if they're small, medium, or large. But as soon as the importer, imports the first image, it will delete the image, and consequently, the remaining variations don't get an image included with them. Does anyone know what code I have to modify to prevent this from happening?

Re: Variations Importer deletes images from the /import folder

Posted: Fri Mar 05, 2010 12:42 pm
by steve4000
It took forever, but I finally figured it out. If anyone else needs this too, here is what u gotta do -

Open: \admin\includes\importer\product_variations.php
Changed line 228 to this,

Code: Select all

$variationImage = ISC_PRODUCT_IMAGE::importImage($importImageFilePath, basename($importImageFilePath), false, false, false, false);

Re: Variations Importer deletes images from the /import folder

Posted: Fri Mar 05, 2010 5:57 pm
by CharlieFoxtrot
Wow! How did you manage to find THAT? ~ Congratulations on fixing it!

Re: Variations Importer deletes images from the /import folder

Posted: Fri Mar 05, 2010 7:14 pm
by steve4000
With great great difficulty, and lots of trial & errors :)