Variations Importer deletes images from the /import folder

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
steve4000
Posts: 6
Joined: Thu Mar 04, 2010 4:34 am

Variations Importer deletes images from the /import folder

Post 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?
steve4000
Posts: 6
Joined: Thu Mar 04, 2010 4:34 am

Re: Variations Importer deletes images from the /import folder

Post 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);
CharlieFoxtrot
Confirmed
Confirmed
Posts: 413
Joined: Sun Aug 09, 2009 1:23 pm

Re: Variations Importer deletes images from the /import folder

Post by CharlieFoxtrot »

Wow! How did you manage to find THAT? ~ Congratulations on fixing it!
ISC 4.0.7

"... and let's be honest that whole "by design" thing is getting old too."
steve4000
Posts: 6
Joined: Thu Mar 04, 2010 4:34 am

Re: Variations Importer deletes images from the /import folder

Post by steve4000 »

With great great difficulty, and lots of trial & errors :)
Post Reply