-
- thugsb

-
Total Posts: 50
Joined: 2009-09-08
UK
|
I assume you’ve solved this by now, but for future users, see this thread. Or search for the following line of code (which won’t have the comments):
$product->addImageToMediaGallery( Mage::getBaseDir('media') . DS . 'import' . trim($gallery_img), null, //Leave this blank so it isn't marked as thumbnail, base, small false, //This will make is so the image is copied from the import directory (not removed) false); ///This will make it so that it will not be excluded from the front end gallery }
|